{"id":410316,"date":"2026-12-02T20:35:52","date_gmt":"2026-12-02T20:35:52","guid":{"rendered":"https:\/\/en-ca.wordpress.org\/plugins\/block-policy\/"},"modified":"2026-12-02T20:35:20","modified_gmt":"2026-12-02T20:35:20","slug":"block-chaperone","status":"publish","type":"plugin","link":"https:\/\/wordpress.org\/plugins\/block-chaperone\/","author":3657560,"comment_status":"closed","ping_status":"closed","template":"","meta":{"version":"1.0.0","stable_tag":"1.0.0","tested":"7.2","requires":"6.6","requires_php":"8.0","requires_plugins":null,"header_name":"Block Chaperone \u2013 Restrict Blocks by Role & Post Type","header_author":"Troy Chaplin","header_description":"Hide or unregister blocks, or restrict them by post type and user role.","last_updated":"2026-12-02 20:35:20","external_support_url":"","external_repository_url":"","donate_link":"","header_plugin_uri":"","header_author_uri":"","rating":0,"author_block_rating":0,"active_installs":0,"downloads":30,"num_ratings":0,"support_threads":0,"support_threads_resolved":0,"author_block_count":0,"sections":["description","installation","faq","changelog"],"tags":{"1.0.0":{"tag":"1.0.0","author":"areziaal","date":"2026-12-02 20:35:20","revision":3841054}},"upgrade_notice":[],"ratings":[],"assets_icons":{"icon-128x128.png":{"filename":"icon-128x128.png","revision":3841054,"resolution":"128x128","location":"assets","locale":"","width":512,"height":512},"icon-256x256.png":{"filename":"icon-256x256.png","revision":3841054,"resolution":"256x256","location":"assets","locale":"","width":1024,"height":1024}},"assets_banners":{"banner-772x250.png":{"filename":"banner-772x250.png","revision":3841054,"resolution":"772x250","location":"assets","locale":"","width":1792,"height":592}},"assets_blueprints":{},"all_blocks":[],"tagged_versions":["1.0.0"],"block_files":[],"assets_screenshots":{"screenshot-1.png":{"filename":"screenshot-1.png","revision":3841054,"resolution":"1","location":"assets","locale":"","width":2660,"height":1546},"screenshot-2.png":{"filename":"screenshot-2.png","revision":3841054,"resolution":"2","location":"assets","locale":"","width":2658,"height":1544},"screenshot-3.png":{"filename":"screenshot-3.png","revision":3841054,"resolution":"3","location":"assets","locale":"","width":2656,"height":1544}},"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.","2":"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."}},"plugin_section":[],"plugin_tags":[297295,148857,4121,148076,154938],"plugin_category":[],"plugin_contributors":[231290],"plugin_business_model":[],"class_list":["post-410316","plugin","type-plugin","status-publish","hentry","plugin_tags-allowed-blocks","plugin_tags-block-editor","plugin_tags-blocks","plugin_tags-gutenberg","plugin_tags-inserter","plugin_contributors-areziaal","plugin_committers-areziaal"],"banners":{"banner":"https:\/\/ps.w.org\/block-chaperone\/assets\/banner-772x250.png?rev=3841054","banner_2x":false,"banner_rtl":false,"banner_2x_rtl":false},"icons":{"svg":false,"icon":"https:\/\/ps.w.org\/block-chaperone\/assets\/icon-128x128.png?rev=3841054","icon_2x":"https:\/\/ps.w.org\/block-chaperone\/assets\/icon-256x256.png?rev=3841054","generated":false},"screenshots":[{"src":"https:\/\/ps.w.org\/block-chaperone\/assets\/screenshot-1.png?rev=3841054","caption":"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."},{"src":"https:\/\/ps.w.org\/block-chaperone\/assets\/screenshot-2.png?rev=3841054","caption":"Limit a restriction to certain post types. Here the Group block is hidden from the inserter in Pages, but stays available in Posts."},{"src":"https:\/\/ps.w.org\/block-chaperone\/assets\/screenshot-3.png?rev=3841054","caption":"Limit a restriction to certain user roles. Here Group is hidden from Editors, Authors, Contributors and Subscribers, while Administrators can still use it."}],"raw_content":"<!--section=description-->\n<p>Block Chaperone adds a settings screen that lists every top-level block on your site \u2014 core blocks and blocks from plugins and themes \u2014 with these options per block:<\/p>\n\n<ul>\n<li><strong>Hide from inserter<\/strong> \u2014 the block can't be added, but existing content keeps working.<\/li>\n<li><strong>Unregister<\/strong> \u2014 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.<\/li>\n<li><strong>Post types<\/strong> \u2014 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.<\/li>\n<li><strong>Roles<\/strong> \u2014 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.<\/li>\n<\/ul>\n\n<p>Search the list, filter it by status, category or source plugin, and change many blocks at once with bulk actions.<\/p>\n\n<h4>How it behaves<\/h4>\n\n<ul>\n<li>Child blocks (like List items or Columns) follow their parent automatically, so they don't clutter the list.<\/li>\n<li>New blocks from newly activated plugins are allowed by default. Only the blocks you change are stored.<\/li>\n<li>Restrictions apply in the post editor only; the Site Editor is left alone.<\/li>\n<li>The Paragraph block is protected, because the editor depends on it.<\/li>\n<li>If your theme or another plugin already limits the available blocks, Block Chaperone only removes from that list. It never adds blocks back.<\/li>\n<\/ul>\n\n<h4>For developers<\/h4>\n\n<p>Use the <code>block_chaperone_settings<\/code> filter to add or override rules in code. A REST API at <code>block-chaperone\/v1<\/code> powers the settings screen. See the README on GitHub for details.<\/p>\n\n<!--section=installation-->\n<ol>\n<li>Upload the plugin to <code>\/wp-content\/plugins\/<\/code> or install it from the Plugins screen.<\/li>\n<li>Activate it.<\/li>\n<li>Go to Settings \u2192 Block Chaperone.<\/li>\n<\/ol>\n\n<!--section=faq-->\n<dl>\n<dt id=\"what%20happens%20to%20content%20that%20uses%20a%20hidden%20block%3F\"><h3>What happens to content that uses a hidden block?<\/h3><\/dt>\n<dd><p>Nothing. Hidden blocks keep rendering on the site and can still be edited. They just can't be inserted again.<\/p><\/dd>\n<dt id=\"what%20happens%20to%20content%20that%20uses%20an%20unregistered%20block%3F\"><h3>What happens to content that uses an unregistered block?<\/h3><\/dt>\n<dd><p>On the site, it keeps rendering. In the post editor, it shows as a placeholder that can be removed but not edited; its content is kept and saved unchanged. Templates and template parts that use the block are not affected.<\/p><\/dd>\n<dt id=\"do%20restrictions%20apply%20in%20the%20site%20editor%3F\"><h3>Do restrictions apply in the Site Editor?<\/h3><\/dt>\n<dd><p>No. Restrictions only apply where content is written: the post editor for posts, pages and other post types. The Site Editor (including pages opened from it), the widgets editor and the Customizer keep every block available, so building templates isn't affected.<\/p><\/dd>\n<dt id=\"why%20isn%27t%20a%20block%20listed%3F\"><h3>Why isn't a block listed?<\/h3><\/dt>\n<dd><p>Only top-level blocks that can be inserted are listed. Blocks registered only in JavaScript, without a PHP or block.json registration, can't be detected.<\/p><\/dd>\n\n<\/dl>\n\n<!--section=changelog-->\n<p>View the full <a href=\"https:\/\/github.com\/troychaplin\/block-chaperone\/blob\/main\/CHANGELOG.md\">changelog<\/a> on GitHub.<\/p>","raw_excerpt":"Control which blocks are available in the editor, block by block: hide them, unregister them, or restrict them by post type and user role.","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/410316","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"replies":[{"embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=410316"}],"author":[{"embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/areziaal"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=410316"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=410316"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=410316"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=410316"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=410316"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=410316"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}