WPDev.one
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.

editor-script.js

Inserter Preview

Search blocks...
Text
Paragraph
H Heading
Quote
V Verse
Media
Image
Audio
Video

In "Curated" mode, distractions like Verse, Audio, and Video are removed, guiding clients to use only approved components.

How to Implement

Create the Script

Create a file named editor.js in your theme's assets folder (e.g., /assets/js/editor.js).

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'], ... );