Bcgov WordPress Blocks
Plugin block reference for blocks provided by bcgov-wordpress-blocks.
Notes
- This section documents block behavior and content authoring expectations.
- Monorepo operational workflows are documented in central docs.
Plugin Instructions
- Install and activate the
bcgov-wordpress-blocksplugin in WordPress. - Ensure plugin assets are built so blocks are registered (
build/output must exist). - In the editor, insert blocks using the block inserter and search for the block name.
- Configure block settings in the sidebar and publish/update the page.
Local Development
This plugin includes its own .wp-env.json, so you can run WordPress from the plugin directory.
bash
cd plugins/bcgov-wordpress-blocks
pnpm install
pnpm wp-env start
pnpm startNotes:
- Run
pnpm buildat least once if blocks do not appear in the inserter. - Use
pnpm wp-env stopto stop the local environment. - Use
pnpm wp-env cleanto reset the local WordPress instance.