isset( $_POST['date'] ) ? $_POST['date'] : '', 'title' => isset( $_POST['title'] ) ? $_POST['title'] : '', 'timeslot' => isset( $_POST['timeslot'] ) ? $_POST['timeslot'] : '', 'calendar_id' => $calendar_id, ); } // allow other addons to modify the appointments booking list and filter those if necessary $bookings = apply_filters( 'booked_fe_appt_form_bookings', $bookings ); // this must be False, if a plugin or script has already checked it while filtering the appointments with 'booked_fe_appt_form_bookings' $check_availability = apply_filters( 'booked_fe_appt_form_check_availability', true ); // count the appointments $total_appts = 0; $total_calendars = count( $bookings ); foreach ( $bookings as $calendar_id => $appointments ) { $total_appts += count( $appointments ); } $has_appts = ! empty( $bookings ); $availability_error = esc_html__( "Sorry, someone just booked this appointment before you could. Please choose a different booking time.", "booked" ); ?>

';