-
Home
-
Meta Slider and Carousel with Lightbox
- Tips
How to Hide the "Meta Gallery" Admin Menu
function plt_hide_meta_slider_and_carousel_with_lightbox_menus() {
//Hide the "Meta Gallery" menu.
remove_menu_page('meta-slider-and-carousel-with-lightbox');
}
add_action('admin_menu', 'plt_hide_meta_slider_and_carousel_with_lightbox_menus', 1000);
Where do I put this code?
How to Hide Meta Slider and Carousel with Lightbox Meta Boxes
function plt_hide_meta_slider_and_carousel_with_lightbox_metaboxes() {
$screen = get_current_screen();
if ( !$screen ) {
return;
}
//Hide the "Meta Slider and Carousel with Lightbox - Settings" meta box.
remove_meta_box('wp-igsp-post-sett', $screen->id, 'normal');
//Hide the "More Premium - Settings" meta box.
remove_meta_box('wp-igsp-post-metabox-pro', $screen->id, 'normal');
}
add_action('add_meta_boxes', 'plt_hide_meta_slider_and_carousel_with_lightbox_metaboxes', 20);