Created
April 5, 2022 18:13
-
-
Save TarttWeb/71969923051c0275746d429c2ce7f07a to your computer and use it in GitHub Desktop.
Add Reusable blocks menu item to WordPress Admin area
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// Add Reusable blocks to WordPress Admin area | |
function add_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', 'add_reusable_blocks_admin_menu' ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment