-
Home
-
Easy AI Blog Generator
- Tips
How to Hide Easy AI Blog Generator Admin Menus
function plt_hide_easy_ai_blog_generator_menus() {
//Hide the "Tools → SEO Debug" menu.
remove_submenu_page('tools.php', 'easyaibloggen-seo-debug');
//Hide the "Tools → Auto Blog Generator" menu.
remove_submenu_page('tools.php', 'easyaibloggen-settings');
//Hide the "Tools → Upgrade" menu.
remove_submenu_page('tools.php', 'easyaibloggen-settings-pricing');
}
add_action('admin_menu', 'plt_hide_easy_ai_blog_generator_menus', 1000000000);
Where do I put this code?
How to Hide Easy AI Blog Generator Meta Boxes
function plt_hide_easy_ai_blog_generator_metaboxes() {
$screen = get_current_screen();
if ( !$screen ) {
return;
}
//Hide the "Easy AI Blog Generator" meta box.
remove_meta_box('easyaibloggen_update_metabox', $screen->id, 'side');
//Hide the "SEO Content Optimization Dashboard" meta box.
remove_meta_box('easyaibloggen-seo-dashboard', $screen->id, 'normal');
}
add_action('add_meta_boxes', 'plt_hide_easy_ai_blog_generator_metaboxes', 20);