-
Home
-
ShareYourCart
- Tips
How to Hide the "ShareYourCart" Admin Menu
function plt_hide_shareyourcart_menus() {
//Hide the "ShareYourCart" menu.
remove_menu_page('class.shareyourcart-wp.php');
}
add_action('admin_menu', 'plt_hide_shareyourcart_menus', 11);
Where do I put this code?
How to Hide the "ShareYourCart" Meta Box
function plt_hide_shareyourcart_metaboxes() {
$screen = get_current_screen();
if ( !$screen ) {
return;
}
//Hide the "ShareYourCart" meta box.
remove_meta_box('shareyourcart_metabox', $screen->id, 'normal');
}
add_action('add_meta_boxes', 'plt_hide_shareyourcart_metaboxes', 20);