Codeally Block Editor Restrictions
Enforces editorial restrictions on the Block Editor (disables Block Directory, Remote Patterns, Openverse, unapproved blocks, and embed variations).
by Codeally · github.com/oldrup/cdly-block-restrictions · website
Install
No release zip yet. The repository archive installs, but the folder name will carry the branch suffix and updates will not flow:
wp plugin install https://github.com/oldrup/cdly-block-restrictions/archive/refs/heads/main.zipEnforces strict, opinionated editorial restrictions on the Block Editor for post content creators.
Description
Codeally Block Editor Restrictions is a zero-configuration, opinionated editorial curation plugin designed to declutter the Block Editor and enforce consistency when writing blog posts.
It restricts post authors to a strictly vetted whitelist of core and custom blocks while turning off external network calls, remote directory popups, unused embed providers, and distracting inspector UI panels.
Features
- Strict Block Whitelist: Restricts allowed blocks exclusively when editing standard 'post' post types.
- Disables Block Directory: Prevents users from searching for or installing external block plugins from the inserter.
- Disables Remote Patterns: Stops WordPress.org remote block patterns from loading in the pattern inserter.
- Disables Openverse: Removes the Openverse media search category and tab from the editor media library.
- Prunes Embed Variations: Unregisters obscure embed providers, keeping only YouTube, Vimeo, Spotify, Pocket Casts, and VideoPress.
- Declutters Inspector UI: Hides block card descriptions, control help text, and advanced custom CSS panels in the sidebar.
- Preserves Site Editor: Full block availability remains untouched in the Site Editor, for pages, and for custom post types.
Installation
- Upload the
cdly-block-restrictionsfolder to the/wp-content/plugins/directory. - Activate the plugin through the Plugins menu in WordPress.
- No configuration needed—restrictions apply automatically when editing posts.
Frequently Asked Questions
Does this plugin have a settings page?
No. This plugin is intentionally opinionated with zero options or database overhead.
What if I need filters to customize the allowed blocks?
If your project requires customizable filters or a different curation strategy, check out MRW Simplified Editor.
Credits
Inspired by and built upon techniques shared in:
- 15 ways to curate the WordPress editing experience by Nick Diego.
- MRW Simplified Editor by Mark Root-Wiley (MRW Web Design).
Changelog
1.1.1
- Published on https://github.com/oldrup/cdly-block-restrictions
1.1.0
- Added CSS stylesheet to declutter the Block Inspector panel (hides block descriptions, help text, and custom CSS input).
1.0.0
- Initial release.