-
Home
-
SmartCloud AI-Kit – On-Device AI Tools
- Tips
How to Hide SmartCloud AI-Kit – On-Device AI Tools Admin Menus
function plt_hide_smartcloud_ai_kit_menus() {
//Hide "SmartCloud".
remove_menu_page('hub-for-wpsuiteio');
//Hide "SmartCloud → Connect your Site".
remove_submenu_page('hub-for-wpsuiteio', 'hub-for-wpsuiteio');
//Hide "SmartCloud → Global Settings".
remove_submenu_page('hub-for-wpsuiteio', 'hub-for-wpsuiteio-settings');
//Hide "SmartCloud → AI-Kit Settings".
remove_submenu_page('hub-for-wpsuiteio', 'smartcloud-ai-kit');
//Hide "SmartCloud → AI-Kit Diagnostics".
remove_submenu_page('hub-for-wpsuiteio', 'smartcloud-ai-kit-diagnostics');
}
add_action('admin_menu', 'plt_hide_smartcloud_ai_kit_menus', 21);
Where do I put this code?
How to Hide the "Generate SEO metadata" Meta Box
function plt_hide_smartcloud_ai_kit_metaboxes() {
$screen = get_current_screen();
if ( !$screen ) {
return;
}
//Hide the "Generate SEO metadata" meta box.
remove_meta_box('ai_kit_generate_metadata', $screen->id, 'side');
}
add_action('add_meta_boxes', 'plt_hide_smartcloud_ai_kit_metaboxes', 20);