Skip to content

Instantly share code, notes, and snippets.

@kimcoleman
Created June 16, 2022 10:32
Show Gist options
  • Save kimcoleman/9f5663817fa4c548fdfffeec4bba4ce6 to your computer and use it in GitHub Desktop.
Save kimcoleman/9f5663817fa4c548fdfffeec4bba4ce6 to your computer and use it in GitHub Desktop.
Add an admin menu link for Reusable Blocks
<?php
/**
* Add an admin menu link for Reusable Blocks
*/
function my_reusable_blocks_admin_menu() {
add_menu_page( 'Reusable Blocks', 'Reusable Blocks', 'edit_posts', 'edit.php?post_type=wp_block', '', 'dashicons-editor-table', 22 );
}
add_action( 'admin_menu', 'my_reusable_blocks_admin_menu' );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment