-
Home
-
Builder Shortcode Extras – WordPress Shortcodes Collection to Save You Time
- Tips
function plt_hide_builder_shortcode_extras_menus() {
//Hide the "Blocks" menu.
remove_menu_page('edit.php?post_type=wp_block');
//Hide the "Blocks → Blocks" menu.
remove_submenu_page('edit.php?post_type=wp_block', 'edit.php?post_type=wp_block');
//Hide the "Blocks → Add New" menu.
remove_submenu_page('edit.php?post_type=wp_block', 'post-new.php?post_type=wp_block');
}
add_action('admin_menu', 'plt_hide_builder_shortcode_extras_menus', 21);
Where do I put this code?