Select one or more tags, then press “Search Plugins”

Find Plugin with any / all of the selected criteria
Search Plugin

Block Chaperone – Restrict Blocks By Role & Post Type Wordpress Plugin - Rating, Reviews, Demo & Download

Block Chaperone – Restrict Blocks By Role & Post Type Preview Wordpress Plugin - Rating, Reviews, Demo & Download
No ratings yet
Free
Follow for free plugins, new theme releases and theme news

Plugin Description

Block Chaperone adds a settings screen that lists every top-level block on your site — core blocks and blocks from plugins and themes — with these options per block:

  • Hide from inserter — the block can’t be added, but existing content keeps working.
  • Unregister — the block can’t be used in post content: it’s hidden, and existing instances show a placeholder you can remove. Templates that use the block keep working.
  • Post types — choose where those restrictions apply. By default they apply to all post types; pick post types to restrict the block only there, for example hide List in Posts but keep it in Pages.
  • Roles — choose who those restrictions apply to. By default they apply to everyone; pick roles to restrict only those users, for example hide Custom HTML from Editors and Authors while Administrators keep it.

Search the list, filter it by status, category or source plugin, and change many blocks at once with bulk actions.

How it behaves

  • Child blocks (like List items or Columns) follow their parent automatically, so they don’t clutter the list.
  • New blocks from newly activated plugins are allowed by default. Only the blocks you change are stored.
  • Restrictions apply in the post editor only; the Site Editor is left alone.
  • The Paragraph block is protected, because the editor depends on it.
  • If your theme or another plugin already limits the available blocks, Block Chaperone only removes from that list. It never adds blocks back.

For developers

Use the block_chaperone_settings filter to add or override rules in code. A REST API at block-chaperone/v1 powers the settings screen. See the README on GitHub for details.

Screenshots

  1. The settings screen lists every block on your site with its status, category and source. Search, filter, and turn on Hide from inserter or Unregister for each block.

    The settings screen lists every block on your site with its status, category and source. Search, filter, and turn on Hide from inserter or Unregister for each block.

  2. Limit a restriction to certain post types. Here the Group block is hidden from the inserter in Pages, but stays available in Posts.

    Limit a restriction to certain post types. Here the Group block is hidden from the inserter in Pages, but stays available in Posts.

  3. Limit a restriction to certain user roles. Here Group is hidden from Editors, Authors, Contributors and Subscribers, while Administrators can still use it.

    Limit a restriction to certain user roles. Here Group is hidden from Editors, Authors, Contributors and Subscribers, while Administrators can still use it.


Reviews & Comments