-
Home
-
Otter – 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 the "Otter Blocks" menu.
remove_menu_page('otter');
//Hide the "Otter Blocks → Settings" menu.
remove_submenu_page('otter', 'otter');
//Hide the "Otter Blocks → Form Submissions" menu.
remove_submenu_page('otter', 'form-submissions-free');
}
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);