-
Home
-
Search Atlas SEO – Premier SEO Plugin for One-Click WP Publishing & Integrated AI Optimization
- Tips
How to Hide Search Atlas SEO Admin Menus
function plt_hide_metasync_menus() {
//Hide "Tools → Scheduled Actions".
remove_submenu_page('tools.php', 'action-scheduler');
//Hide "Search Atlas".
remove_menu_page('searchatlas');
//Hide "Search Atlas → Dashboard".
remove_submenu_page('searchatlas', 'searchatlas-dashboard');
//Hide "Search Atlas → Settings".
remove_submenu_page('searchatlas', 'searchatlas');
//Hide "Search Atlas → Compatibility".
remove_submenu_page('searchatlas', 'searchatlas-compatibility');
//Hide "Search Atlas → Sync Log".
remove_submenu_page('searchatlas', 'searchatlas-sync-log');
//Hide "Search Atlas → Indexation Control".
remove_submenu_page('searchatlas', 'searchatlas-seo-controls');
//Hide "Search Atlas → Redirections".
remove_submenu_page('searchatlas', 'searchatlas-redirections');
//Hide "Search Atlas → XML Sitemap".
remove_submenu_page('searchatlas', 'searchatlas-xml-sitemap');
//Hide "Search Atlas → Robots.txt".
remove_submenu_page('searchatlas', 'searchatlas-robots-txt');
//Hide "Search Atlas → Custom Pages".
remove_submenu_page('searchatlas', 'searchatlas-custom-pages');
}
add_action('admin_menu', 'plt_hide_metasync_menus', 1000);
Where do I put this code?
How to Hide Search Atlas SEO Meta Boxes
function plt_hide_metasync_metaboxes() {
$screen = get_current_screen();
if ( !$screen ) {
return;
}
//Hide the "Common Robots Meta by Search Atlas" meta box.
remove_meta_box('common-robots-meta', $screen->id, 'normal');
//Hide the "Advance Robots Meta by Search Atlas" meta box.
remove_meta_box('advance-robots-meta', $screen->id, 'normal');
//Hide the "Redirection by Search Atlas" meta box.
remove_meta_box('post-redirection-meta', $screen->id, 'normal');
//Hide the "Canonical by Search Atlas" meta box.
remove_meta_box('post-canonical-meta', $screen->id, 'normal');
//Hide the "Schema Markup" meta box.
remove_meta_box('metasync-schema-markup', $screen->id, 'normal');
}
add_action('add_meta_boxes', 'plt_hide_metasync_metaboxes', 20);