< Back to API Documentation

PRC_Scheduling->get_user_available_time_slots

Returns available timeslots for a user given a user ID, a date (in Y-m-d format), and required time (in minutes).

Example

$available_timeslots = PRC()->scheduling->get_user_available_time_slots( $user_id, $date, $duration_minutes );

echo 'Available timeslots: <pre>' . var_export( $available_timeslots, true ) . '</pre>';