-
Home
-
Slicko
- Tips
How to Hide Slicko For Slicko Theme Admin Menus
function plt_hide_slicko_for_elementor_menus() {
//Hide "Appearance → Import Demo Data".
remove_submenu_page('themes.php', 'one-click-demo-import');
//Hide "Slide".
remove_menu_page('edit.php?post_type=slicko_slide');
//Hide "Slide → All Slide".
remove_submenu_page('edit.php?post_type=slicko_slide', 'edit.php?post_type=slicko_slide');
//Hide "Slide → Add New Slide".
remove_submenu_page('edit.php?post_type=slicko_slide', 'post-new.php?post_type=slicko_slide');
//Hide "Slicko".
remove_menu_page('Slicko');
//Hide "Slicko → All Headers".
remove_submenu_page('Slicko', 'edit.php?post_type=slicko_header');
//Hide "Slicko → All Footers".
remove_submenu_page('Slicko', 'edit.php?post_type=slicko_footer');
//Hide "Slicko → All Mega Menus".
remove_submenu_page('Slicko', 'edit.php?post_type=slicko_megamenu');
}
add_action('admin_menu', 'plt_hide_slicko_for_elementor_menus', 11);
Where do I put this code?
How to Hide the "Include Exclude Rules" Meta Box
function plt_hide_slicko_for_elementor_metaboxes() {
$screen = get_current_screen();
if ( !$screen ) {
return;
}
//Hide the "Include Exclude Rules" meta box.
remove_meta_box('include-exclude-rules', $screen->id, 'normal');
}
add_action('add_meta_boxes', 'plt_hide_slicko_for_elementor_metaboxes', 20);