-
Home
-
Genesis Custom Blocks
- Tips
function plt_hide_genesis_custom_blocks_menus() {
//Hide "Custom Blocks".
remove_menu_page('edit.php?post_type=genesis_custom_block');
//Hide "Custom Blocks → All Blocks".
remove_submenu_page('edit.php?post_type=genesis_custom_block', 'edit.php?post_type=genesis_custom_block');
//Hide "Custom Blocks → Add New".
remove_submenu_page('edit.php?post_type=genesis_custom_block', 'post-new.php?post_type=genesis_custom_block');
//Hide "Custom Blocks → Settings".
remove_submenu_page('edit.php?post_type=genesis_custom_block', 'genesis-custom-blocks-settings');
//Hide "Custom Blocks → Documentation".
remove_submenu_page('edit.php?post_type=genesis_custom_block', 'genesis-custom-blocks-documentation');
//Hide "Custom Blocks → Genesis Pro".
remove_submenu_page('edit.php?post_type=genesis_custom_block', 'genesis-custom-blocks-pro');
}
add_action('admin_menu', 'plt_hide_genesis_custom_blocks_menus', 11);
Where do I put this code?