Show Gutenberg's Reusable Blocks in WordPress Admin

function add_reusable_blocks_admin_menu() { add_menu_page( 'Reusable Blocks', 'Reusable Blocks', 'edit_posts', 'edit.php?post_type=wp_block', '', 'dashicons-controls-repeat', 22 ); } add_action( 'admin_menu', 'add_reusable_blocks_admin_menu' );
Function to make Gutenberg's reusable blocks visible in WordPress admin section. I updated to remove the filtering part where the Reusable blocks are converted to a CPT. I just need the Reusable Blocks added to the admin section.

Be the first to comment

You can use [html][/html], [css][/css], [php][/php] and more to embed the code. Urls are automatically hyperlinked. Line breaks and paragraphs are automatically generated.