-
Home
-
DOOFINDER Search and Discovery for WP & WooCommerce
- Tips
How to Hide DOOFINDER Search and Discovery for WP & WooCommerce Admin Menus
function plt_hide_doofinder_for_woocommerce_menus() {
//Hide the "Dashboard →" menu.
remove_submenu_page('index.php', 'df-setup');
//Hide the "Doofinder" menu.
remove_menu_page('doofinder_for_wp');
}
add_action('admin_menu', 'plt_hide_doofinder_for_woocommerce_menus', 11);
Where do I put this code?
How to Hide the "Doofinder - Indexing" Meta Box
function plt_hide_doofinder_for_woocommerce_metaboxes() {
$screen = get_current_screen();
if ( !$screen ) {
return;
}
//Hide the "Doofinder - Indexing" meta box.
remove_meta_box('doofinder-for-wp-visibility-settings', $screen->id, 'side');
}
add_action('add_meta_boxes', 'plt_hide_doofinder_for_woocommerce_metaboxes', 20);