-
Home
-
AI Image SEO Toolkit
- Tips
How to Hide AI Image SEO Toolkit Admin Menus
function plt_hide_ai_image_seo_toolkit_menus() {
//Hide "AI Image SEO Toolkit".
remove_menu_page('ai-image-seo-toolkit');
//Hide "AI Image SEO Toolkit → Tuning".
remove_submenu_page('ai-image-seo-toolkit', 'ai-image-seo-toolkit-tuning');
//Hide "AI Image SEO Toolkit → Bulk generation".
remove_submenu_page('ai-image-seo-toolkit', 'ai-image-seo-toolkit-bulk-optimization');
//Hide "AI Image SEO Toolkit → Update content".
remove_submenu_page('ai-image-seo-toolkit', 'ai-image-seo-toolkit-update-pages');
//Hide "AI Image SEO Toolkit → Settings".
remove_submenu_page('ai-image-seo-toolkit', 'ai-image-seo-toolkit-settings');
}
add_action('admin_menu', 'plt_hide_ai_image_seo_toolkit_menus', 11);
Where do I put this code?
How to Hide the "AI Image SEO Toolkit" Meta Box
function plt_hide_ai_image_seo_toolkit_metaboxes() {
$screen = get_current_screen();
if ( !$screen ) {
return;
}
//Hide the "AI Image SEO Toolkit" meta box.
remove_meta_box('aiit-seo-optimizer', $screen->id, 'side');
}
add_action('add_meta_boxes', 'plt_hide_ai_image_seo_toolkit_metaboxes', 20);