-
Home
-
JewelFit-Virtual Jewellery Try On Woocommerce
- Tips
How to Hide the "JewelFit" Admin Menu
function plt_hide_jewelfit_virtual_jewellery_try_on_menus() {
//Hide the "JewelFit" menu.
remove_menu_page('tryjewelmenu');
}
add_action('admin_menu', 'plt_hide_jewelfit_virtual_jewellery_try_on_menus', 11);
Where do I put this code?
How to Hide the "Try On" Meta Box
function plt_hide_jewelfit_virtual_jewellery_try_on_metaboxes() {
$screen = get_current_screen();
if ( !$screen ) {
return;
}
//Hide the "Try On" meta box.
remove_meta_box('wf_child_letters_neck', $screen->id, 'advanced');
}
add_action('add_meta_boxes', 'plt_hide_jewelfit_virtual_jewellery_try_on_metaboxes', 20);