-
Home
-
Logo Slider and Showcase
- Tips
How to Hide Logo Slider and Showcase Admin Menus
function plt_hide_wp_logo_showcase_menus() {
//Hide "Logo Showcase".
remove_menu_page('edit.php?post_type=wlshowcase');
//Hide "Logo Showcase → All Logos".
remove_submenu_page('edit.php?post_type=wlshowcase', 'edit.php?post_type=wlshowcase');
//Hide "Logo Showcase → Add New Logo".
remove_submenu_page('edit.php?post_type=wlshowcase', 'post-new.php?post_type=wlshowcase');
//Hide "Logo Showcase → Categories".
remove_submenu_page('edit.php?post_type=wlshowcase', 'edit-tags.php?taxonomy=wlshowcase_category&post_type=wlshowcase');
//Hide "Logo Showcase → Shortcode Generator".
remove_submenu_page('edit.php?post_type=wlshowcase', 'edit.php?post_type=wlshowcasesc');
//Hide "Logo Showcase → Settings".
remove_submenu_page('edit.php?post_type=wlshowcase', 'wls_settings');
}
add_action('admin_menu', 'plt_hide_wp_logo_showcase_menus', 11);
Where do I put this code?
How to Hide Logo Slider and Showcase Meta Boxes
function plt_hide_wp_logo_showcase_metaboxes() {
$screen = get_current_screen();
if ( !$screen ) {
return;
}
//Hide the "Logo Image" meta box.
remove_meta_box('postimagediv', $screen->id, 'normal');
//Hide the "Short Code Generator" meta box.
remove_meta_box('wlshowcasesc_sc_settings_meta', $screen->id, 'normal');
//Hide the "Documentation" meta box.
remove_meta_box('rt_plugin_sc_pro_information', $screen->id, 'side');
}
add_action('add_meta_boxes', 'plt_hide_wp_logo_showcase_metaboxes', 20);