-
Home
-
Search Atlas SEO – Best SEO Plugin for One-Click WP Publishing & Integrated AI Optimization
- Tips
How to Hide Search Engine Labs Content Admin Menus
function plt_hide_metasync_menus() {
//Hide the "SearchAtlas" menu.
remove_menu_page('searchatlas');
//Hide the "SearchAtlas → General" menu.
remove_submenu_page('searchatlas', 'searchatlas');
//Hide the "SearchAtlas → Metasync Errors" menu.
remove_submenu_page('searchatlas', 'searchatlas-error-log');
}
add_action('admin_menu', 'plt_hide_metasync_menus', 11);
Where do I put this code?
How to Hide Search Engine Labs Content Meta Boxes
function plt_hide_metasync_metaboxes() {
$screen = get_current_screen();
if ( !$screen ) {
return;
}
//Hide the "Common Robots Mata" meta box.
remove_meta_box('common-robots-mata', $screen->id, 'normal');
//Hide the "Advance Robots Mata" meta box.
remove_meta_box('advance-robots-mata', $screen->id, 'normal');
//Hide the "Redirection" meta box.
remove_meta_box('post-redirection-mata', $screen->id, 'normal');
//Hide the "Canonical" meta box.
remove_meta_box('post-canonical-mata', $screen->id, 'normal');
}
add_action('add_meta_boxes', 'plt_hide_metasync_metaboxes', 20);