-
Home
-
Allkeyshop Widget
- Tips
How to Hide the "Allkeyshop Widget" Admin Menu
function plt_hide_allkeyshop_widget_menus() {
//Hide the "Tools → Allkeyshop Widget" menu.
remove_submenu_page('tools.php', 'allkeyshop_widget');
}
add_action('admin_menu', 'plt_hide_allkeyshop_widget_menus', 11);
Where do I put this code?
How to Hide the "Allkeyshop Widget" Meta Box
function plt_hide_allkeyshop_widget_metaboxes() {
$screen = get_current_screen();
if ( !$screen ) {
return;
}
//Hide the "Allkeyshop Widget" meta box.
remove_meta_box('vaks_game_box', $screen->id, 'advanced');
}
add_action('add_meta_boxes', 'plt_hide_allkeyshop_widget_metaboxes', 20);