Appointment Availability loop

For loop type woo_appointment_availability, 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

  • is_appointable - If it is appointable, (bool).

  • 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

  • staff_id - Appointable Staff ID.

Fields

  • appointable - If appointable (bool)
  • date_created - Date created
  • date_modified - Date modified
  • end_date - Date end
  • event_id - Event id
  • from_date - From date
  • from_range - From range, depends on type. Returns hh:mm, # of month, # of week, # of day in week
  • id - ID
  • kind - Kind of availability - e.g. staff, product ... For global availabiity it is empty
  • kind_id - Kind id of availability - e.g. staff id, product id... For global availabiity it is empty
  • ordering - Availability ordering
  • priority - Availability priority
  • qty - Availability quantity
  • range_type - Range type, ie "custom", "custom:daterange", "months", "weeks", "days", "time"(recurring, all week) , "time:range"(recurring, date range) , "time:1"(time on specific day in a week)
  • rrule - Range rule
  • start_date - Date start
  • title - Availability title
  • to_date - To date
  • to_range - To range, depends on type. Returns hh:mm, # of month, # of week, # of day in week