Testing of this plugin has been temporarily suspended due to an error. It will automatically resume when a new plugin version is released.
function plt_hide_simply_schedule_appointments_menus() {
//Hide the "Tools → Scheduled Actions" menu.
remove_submenu_page('tools.php', 'action-scheduler');
//Hide the "Appointments" menu.
remove_menu_page('simply-schedule-appointments');
}
add_action('admin_menu', 'plt_hide_simply_schedule_appointments_menus', 11);
function plt_hide_simply_schedule_appointments_dashboard_widgets() {
$screen = get_current_screen();
if ( !$screen ) {
return;
}
//Remove the "Your Upcoming Appointments" widget.
remove_meta_box('ssa-dashboard-upcoming-appointments-widget', 'dashboard', 'normal');
}
add_action('wp_dashboard_setup', 'plt_hide_simply_schedule_appointments_dashboard_widgets', 20);