-
Home
-
Appointment Booking Calendar – BirchPress Scheduler
- Tips
function plt_hide_birchschedule_menus() {
//Hide "Appointments".
remove_menu_page('edit.php?post_type=birs_appointment');
//Hide "Appointments → Calendar".
remove_submenu_page('edit.php?post_type=birs_appointment', 'birchschedule_calendar');
//Hide "Appointments → New Appointment".
remove_submenu_page('edit.php?post_type=birs_appointment', 'post-new.php?post_type=birs_appointment');
//Hide "Appointments → Locations".
remove_submenu_page('edit.php?post_type=birs_appointment', 'edit.php?post_type=birs_location');
//Hide "Appointments → Providers".
remove_submenu_page('edit.php?post_type=birs_appointment', 'edit.php?post_type=birs_staff');
//Hide "Appointments → Services".
remove_submenu_page('edit.php?post_type=birs_appointment', 'edit.php?post_type=birs_service');
//Hide "Appointments → Settings".
remove_submenu_page('edit.php?post_type=birs_appointment', 'birchschedule_settings');
//Hide "Appointments → Help".
remove_submenu_page('edit.php?post_type=birs_appointment', 'birchschedule_help');
//Hide "Clients".
remove_menu_page('edit.php?post_type=birs_client');
//Hide "Clients → Clients".
remove_submenu_page('edit.php?post_type=birs_client', 'edit.php?post_type=birs_client');
//Hide "Clients → Add New Client".
remove_submenu_page('edit.php?post_type=birs_client', 'post-new.php?post_type=birs_client');
}
add_action('admin_menu', 'plt_hide_birchschedule_menus', 11);
Where do I put this code?