Install
This is the repository archive. It installs, but the folder name will carry the branch suffix and updates will not flow.
Install straight from GitHub with WP-CLI:
wp plugin install https://github.com/stracker-phil/wp-gutenberg-block-template/archive/refs/heads/master.zipNo built-in updater. New versions won't appear under Dashboard → Updates. Install new releases yourself, or let Git Updater track the repository.
Gutenberg Block Plugin
Requirements
- PHP 5.4 or higher (namespaces, short array notation)
npmversion 6 or higher- WordPress 5.0 or higher
Setup
- Rename the folder and
plugin.php - Edit the plugin name in
package.json - Edit the plugin header, rename namespaces
- Rename the
wpblocktextdomain in all .php and .js files - Rename the
wpblockscript- and style handles in enqueue-scripts.php - Rename the file languages/wpblock.pot
- Run
npm installin the plugin folder - Build the assets:
npm run dev
Re-build the Gutenberg blocks
npm run dev.. One time compilation in development mode.npm run watch.. Live-compilation in development mode.npm run build.. Build the production assets.
API documentation
https://wordpress.org/gutenberg/handbook/