A WordPress plugin to show or hide WordPress editor (Gutenberg) blocks in context.
Source of the Gutenberg Block Context plugin for WordPress.
- WordPress 5.0+ or the Gutenberg Plugin.
- Composer and Node.js for dependency management.
- Docker for the local development environment.
-
Search for "Block Context" under "Plugins → Add New" in your WordPress dashboard.
-
Install as a Composer dependency:
composer require preseto/block-context
-
Clone the plugin repository.
-
Setup the development environment and tools using Node.js and Composer:
npm install composer install -
Start the local development environment (powered by wp-env):
npm run startwhich will be available at http://localhost:8888 (username:
admin, password:password). WordPress core files are installed as theroots/wordpressComposer dependency underwordpress/. -
Build the plugin assets during development:
npm run devor produce a production build:
npm run build -
Lint and test the changes:
npm run lint npm run test
Created by Kaspars Dambis.
