{"id":157800,"date":"2022-05-28T12:13:32","date_gmt":"2022-05-28T12:13:32","guid":{"rendered":"https:\/\/wordpress.org\/plugins\/controlled-content-block-by-wpblockbuddy\/"},"modified":"2022-05-31T13:58:36","modified_gmt":"2022-05-31T13:58:36","slug":"controlled-content-block","status":"closed","type":"plugin","link":"https:\/\/hr.wordpress.org\/plugins\/controlled-content-block\/","author":20441552,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_crdt_document":"","version":"0.2.1","stable_tag":"trunk","tested":"6.0.11","requires":"5.8","requires_php":"7.0","requires_plugins":"","header_name":"Controlled Content Block by wpBlockBuddy","header_author":"wpblockbuddy","header_description":"A block that restricts the allowed block types for a content section.","assets_banners_color":"ccb316","last_updated":"2022-05-31 13:58:36","external_support_url":"","external_repository_url":"","donate_link":"","header_plugin_uri":"","header_author_uri":"","rating":0,"author_block_rating":0,"active_installs":0,"downloads":2639,"num_ratings":0,"support_threads":0,"support_threads_resolved":0,"author_block_count":0,"sections":["description","installation","faq","changelog"],"tags":{"0.1.0":{"tag":"0.1.0","author":"wpblockbuddy","date":"2022-05-28 12:13:10"},"0.2.0":{"tag":"0.2.0","author":"wpblockbuddy","date":"2022-05-31 12:01:26"},"0.2.1.1":{"tag":"0.2.1.1","author":"wpblockbuddy","date":"2022-05-31 13:58:36"}},"upgrade_notice":[],"ratings":[],"assets_icons":{"icon-128X128.png":{"filename":"icon-128X128.png","revision":2733106,"resolution":"128x128","location":"assets","locale":""},"icon-256x256.png":{"filename":"icon-256x256.png","revision":2733106,"resolution":"256x256","location":"assets","locale":""}},"assets_banners":{"banner-772x250.png":{"filename":"banner-772x250.png","revision":2733106,"resolution":"772x250","location":"assets","locale":""}},"assets_blueprints":{},"all_blocks":{"wpblockbuddy\/controlled-content":{"$schema":"https:\/\/schemas.wp.org\/trunk\/block.json","apiVersion":2,"name":"wpblockbuddy\/controlled-content","version":"0.2.1","title":"Controlled Content","category":"design","icon":"admin-settings","description":"Create an allowed blocks section","supports":{"align":["wide","full"],"anchor":true,"html":false,"color":{"gradients":true,"link":true,"__experimentalDefaultControls":{"background":true,"text":true}}},"attributes":{"allowedBlocks":{"type":"array","default":["core\/paragraph"]},"instructions":{"type":"string"}},"example":{"innerBlocks":[{"name":"core\/paragraph","attributes":{"content":"Lorem ipsum dolor sit amet, consectetur adipiscing elit. Praesent et eros eu felis."}}]},"textdomain":"controlled-content","editorScript":"file:.\/index.js","editorStyle":"file:.\/index.css"}},"tagged_versions":["0.1.0","0.2.0","0.2.1.1"],"block_files":[],"assets_screenshots":{"screenshot-1.png":{"filename":"screenshot-1.png","revision":2734801,"resolution":"1","location":"assets","locale":""},"screenshot-2.png":{"filename":"screenshot-2.png","revision":2733106,"resolution":"2","location":"assets","locale":""}},"screenshots":{"1":"Select allowed blocks.","2":"Only allowed blocks in block editor"},"jetpack_post_was_ever_published":false},"plugin_section":[],"plugin_tags":[1220,4121,4072,4036],"plugin_category":[],"plugin_contributors":[210752],"plugin_business_model":[],"class_list":["post-157800","plugin","type-plugin","status-closed","hentry","plugin_tags-block","plugin_tags-blocks","plugin_tags-design","plugin_tags-layout","plugin_contributors-wpblockbuddy","plugin_committers-wpblockbuddy"],"banners":[],"icons":{"svg":false,"icon":"https:\/\/s.w.org\/plugins\/geopattern-icon\/controlled-content-block_ccb316.svg","icon_2x":false,"generated":true},"screenshots":[{"src":"https:\/\/ps.w.org\/controlled-content-block\/assets\/screenshot-1.png?rev=2734801","caption":"Select allowed blocks."},{"src":"https:\/\/ps.w.org\/controlled-content-block\/assets\/screenshot-2.png?rev=2733106","caption":"Only allowed blocks in block editor"}],"raw_content":"<!--section=description-->\n<p>With the Controlled Content Block you can create a Content section where you have control over which blocks are allowed. Use this block if you have a section where you only want paragraphs. The block also features a filter to control who can change which type of blocks are available. The possible allowed core blocks are paragraphs, lists, headings, and images. If you would like to add or remove blocks from these choices there is a filter for that too.<\/p>\n\n<p>The block also features a filter to remove the meta box for selecting allowed blocks for certain users.<\/p>\n\n<p><a href=\"https:\/\/wpblockbuddy.com\/blocks\/controlled-content-block\/\">View Information on filters and additional documentation.<\/a><\/p>\n\n<!--section=installation-->\n<ol>\n<li>Upload the plugin files to the <code>\/wp-content\/plugins\/controlled-content<\/code> directory, or install the plugin through the WordPress plugins screen directly.<\/li>\n<li>Activate the plugin through the 'Plugins' screen in WordPress<\/li>\n<\/ol>\n\n<!--section=faq-->\n<dl>\n<dt id='which%20blocks%20can%20be%20allowed%3F'><h3>Which blocks can be allowed?<\/h3><\/dt>\n<dd><p>Any block installed on your site. The default list you can select from is:<\/p>\n\n<ul>\n<li>Paragraph<\/li>\n<li>List<\/li>\n<li>Heading<\/li>\n<li>Image<\/li>\n<\/ul><\/dd>\n<dt id='what%20filters%20are%20available%3F'><h3>What Filters are available?<\/h3><\/dt>\n<dd><p>The block offers two filters.<\/p>\n\n<ol>\n<li><code>wpblockbuddy_controlled_content_block_choices<\/code> to filter the list of blocks to choose from.<\/li>\n<li><code>wpblockbuddy_controlled_content_user_can_view<\/code> to filter if the meta box for selecting allowed blocks is visible to a user.<\/li>\n<\/ol><\/dd>\n\n<\/dl>\n\n<!--section=changelog-->\n<h4>0.1.0<\/h4>\n\n<ul>\n<li>Release<\/li>\n<\/ul>\n\n<h4>0.2.0<\/h4>\n\n<ul>\n<li>Add option for custom placeholder text for the block<\/li>\n<li>Add link to documentation from the plugin action links<\/li>\n<\/ul>","raw_excerpt":"A block to set allowed inner blocks.","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/hr.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/157800","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/hr.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/hr.wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"replies":[{"embeddable":true,"href":"https:\/\/hr.wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=157800"}],"author":[{"embeddable":true,"href":"https:\/\/hr.wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/wpblockbuddy"}],"wp:attachment":[{"href":"https:\/\/hr.wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=157800"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/hr.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=157800"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/hr.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=157800"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/hr.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=157800"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/hr.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=157800"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/hr.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=157800"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}