-
Home
-
WP BASE Booking of Appointments, Services and Events
- Tips
How to Hide WP BASE Booking of Appointments, Services and Events Admin Menus
function plt_hide_wp_base_booking_of_appointments_services_and_events_menus() {
//Hide "Users → Your Bookings".
remove_submenu_page('users.php', 'your_bookings');
//Hide "WP BASE".
remove_menu_page('appointments');
//Hide "WP BASE → Dashboard".
remove_submenu_page('appointments', 'appointments');
//Hide "WP BASE → Bookings".
remove_submenu_page('appointments', 'app_bookings');
//Hide "WP BASE → Clients".
remove_submenu_page('appointments', 'app_clients');
//Hide "WP BASE → Schedules".
remove_submenu_page('appointments', 'app_schedules');
//Hide "WP BASE → Payment History".
remove_submenu_page('appointments', 'app_transactions');
//Hide "WP BASE → Business Settings".
remove_submenu_page('appointments', 'app_business');
//Hide "WP BASE → Monetary Settings".
remove_submenu_page('appointments', 'app_monetary');
//Hide "WP BASE → Display Settings".
remove_submenu_page('appointments', 'app_display');
//Hide "WP BASE → Global Settings".
remove_submenu_page('appointments', 'app_settings');
//Hide "WP BASE → Tools".
remove_submenu_page('appointments', 'app_tools');
//Hide "WP BASE → Addons".
remove_submenu_page('appointments', 'app_addons');
//Hide "WP BASE → Get More".
remove_submenu_page('appointments', 'app_premium');
//Hide "WP BASE → Setup Wizard".
remove_submenu_page('appointments', 'app_setup');
//Hide "WP BASE → Help".
remove_submenu_page('appointments', 'app_help');
}
add_action('admin_menu', 'plt_hide_wp_base_booking_of_appointments_services_and_events_menus', 11);
Where do I put this code?
How to Hide the "WP BASE" Dashboard Widget
function plt_hide_wp_base_booking_of_appointments_services_and_events_dashboard_widgets() {
$screen = get_current_screen();
if ( !$screen ) {
return;
}
//Remove the "WP BASE" widget.
remove_meta_box('app_dashboard_widget', 'dashboard', 'normal');
}
add_action('wp_dashboard_setup', 'plt_hide_wp_base_booking_of_appointments_services_and_events_dashboard_widgets', 20);