-
Home
-
Kubio AI Page Builder
- Tips
How to Hide Kubio Admin Menus
function plt_hide_kubio_menus() {
//Hide "Kubio".
remove_menu_page('kubio');
//Hide "Kubio → Open Kubio Editor".
remove_submenu_page('kubio', 'kubio');
//Hide "Kubio → Get Started".
remove_submenu_page('kubio', 'kubio-get-started');
//Hide "Kubio → Starter Sites".
remove_submenu_page('kubio', 'http://127.0.0.1/wp-admin/admin.php?tab=demo-sites&page=kubio-get-started');
//Hide "Kubio → Kubio AI".
remove_submenu_page('kubio', 'http://127.0.0.1/wp-admin/admin.php?tab=ai-info&page=kubio-get-started');
//Hide "Kubio → Upgrade to PRO".
remove_submenu_page('kubio', 'http://127.0.0.1/wp-admin/admin.php?tab=pro-upgrade&page=kubio-get-started');
//Hide "Appearance → Edit with Kubio".
remove_submenu_page('themes.php', 'http://127.0.0.1/wp-admin/admin.php?page=kubio');
//Hide "Appearance → Background".
remove_submenu_page('themes.php', 'customize.php?autofocus%5Bcontrol%5D=background_image');
//Hide "Appearance → Templates".
remove_submenu_page('themes.php', 'edit.php?post_type=wp_template');
//Hide "Appearance → Template Parts".
remove_submenu_page('themes.php', 'edit.php?post_type=wp_template_part');
//Hide "Appearance → Background".
remove_submenu_page('themes.php', 'custom-background');
}
add_action('admin_menu', 'plt_hide_kubio_menus', 1001);
Where do I put this code?
How to Hide the "Post Attributes" Meta Box
function plt_hide_kubio_metaboxes() {
$screen = get_current_screen();
if ( !$screen ) {
return;
}
//Hide the "Post Attributes" meta box.
remove_meta_box('pageparentdiv', $screen->id, 'side');
}
add_action('add_meta_boxes', 'plt_hide_kubio_metaboxes', 20);