get_lsw(); $options = appointments_get_options(); if ( $options["admin_min_time"] ) { $min_time = $options["admin_min_time"]; } else { $min_time = $appointments->get_min_time(); } $min_secs = 60 * apply_filters( 'app_admin_min_time', $min_time ); /** @var string $status */ $wb = appointments_get_worker_working_hours( $status, $appointments->worker, $appointments->location ); if ( ! $wb ) { $whours = array(); } else { $whours = $wb->hours; } ?>