Appointment loop
For loop type woo_appointment
, here are the available query arguments and fields.
Query arguments
-
count
- Limit number of itemsType: number
-
field
- Filter by given field - If value is not set, it queries for posts whose field value existsType: string
-
field_compare
- Compare using one of: "is" (default), "is_not", "before", "before_inclusive", "after", "after_inclusive", "in", "not_in", "exists", "not_exists"Type: string
-
field_type
- For field query, one of: string (default), number, date, time, datetimeType: string
-
field_value
- Filter by given field valueType: string
-
offset
- Offset loop by number of items to skipType: number
-
product_id
- Appointable Product ID. -
sort_field
- Sort by given field nameType: string
-
sort_order
- Sort order: asc (ascending) or desc (descending)Default:
asc
Type: string -
sort_type
- For sort query, one of: string (default), lowercase, number, dateType: string
Fields
-
all_day
- All day (bool)
-
cost
- Appointment cost
-
customer_id
- Customer id
-
customer_status
- Customer status -'expected','arrived,'no-show'
-
date_created
- Date created
-
date_modified
- Date modified
-
end
- Appointment End
-
google_calendar_event_id
- Google calendar event id
-
google_calendar_staff_event_ids
- Google calendar staff event ids
-
id
- ID
-
order_id
- Order id
-
order_item_id
- Order item id
-
parent_id
- Parent id
-
product
- Appointment product - returns product loop
-
product_id
- Product id
-
qty
- Quantity
-
staff_id
- Staff id
-
staff_ids
- Staff ids
-
start
- Appointment Start
-
status
- Appointment status -'unpaid','pending-confirmation','confirmed' ,'paid','cancelled', 'complete'
-
timezone
- Timezone