Client-Side
JavaScript
Editor UX Client Proofing
Curate the Block Inserter Menu
Remove clutter by unregistering specific blocks or categories from the "Plus" menu. This prevents clients from inserting complex blocks like "Verse" or "Archives" that break your design system.
Inserter Preview
Search blocks...
In "Curated" mode, distractions like Verse, Audio, and Video are removed, guiding clients to use only approved components.
How to Implement
1
Create the Script
Create a file named editor.js in your theme's assets folder (e.g., /assets/js/editor.js).
2
Enqueue Dependencies
Add this to your functions.php to load the script. Note the dependency on wp-dom-ready and wp-blocks.
wp_enqueue_script( 'my-editor-js', get_theme_file_uri('/assets/js/editor.js'), ['wp-blocks', 'wp-dom-ready', 'wp-edit-post'], ... );