Appointment loop

For loop type woo_appointment, here are the available query arguments and fields.

Query arguments

  • count - Limit number of items

    Type: number

  • field - Filter by given field - If value is not set, it queries for posts whose field value exists

    Type: 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, datetime

    Type: string

  • field_value - Filter by given field value

    Type: string

  • offset - Offset loop by number of items to skip

    Type: number

  • product_id - Appointable Product ID.

  • sort_field - Sort by given field name

    Type: 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, date

    Type: 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