-
Home
-
Otter Blocks – Gutenberg Blocks, Page Builder for Gutenberg Editor & FSE
- Tips
How to Hide Otter – Page Builder Blocks & Extensions for Gutenberg Admin Menus
function plt_hide_otter_blocks_menus() {
//Hide "Otter Blocks".
remove_menu_page('otter');
//Hide "Otter Blocks → Settings".
remove_submenu_page('otter', 'otter');
//Hide "Otter Blocks → Submissions Pro".
remove_submenu_page('otter', 'form-submissions-free');
//Hide "Otter Blocks → Blocks".
remove_submenu_page('otter', 'otter-blocks-toggle');
//Hide "Otter Blocks → About Us".
remove_submenu_page('otter', 'ti-about-otter_blocks');
//Hide "Otter Blocks → Get Otter Pro".
remove_submenu_page('otter', 'https://themeisle.com/plugins/otter-blocks/upgrade/?utm_source=wpadmin&utm_medium=index&utm_campaign=editor&utm_content=otter-blocks');
}
add_action('admin_menu', 'plt_hide_otter_blocks_menus', 11);
Where do I put this code?
How to Hide the "WooCommerce Builder by Otter" Meta Box
function plt_hide_otter_blocks_metaboxes() {
$screen = get_current_screen();
if ( !$screen ) {
return;
}
//Hide the "WooCommerce Builder by Otter" meta box.
remove_meta_box('otter_woo_builder', $screen->id, 'side');
}
add_action('add_meta_boxes', 'plt_hide_otter_blocks_metaboxes', 20);
How to Hide the "WordPress Guides/Tutorials" Dashboard Widget
function plt_hide_otter_blocks_dashboard_widgets() {
$screen = get_current_screen();
if ( !$screen ) {
return;
}
//Remove the "WordPress Guides/Tutorials" widget.
remove_meta_box('themeisle', 'dashboard', 'normal');
}
add_action('wp_dashboard_setup', 'plt_hide_otter_blocks_dashboard_widgets', 20);