Skip to main content

Widgets

The Availability Filter widget adds a date range picker to shop/category pages to filter appointable products by availability.

Availability filter widget

Usage

  1. Go to Appearance → Widgets.
  2. Add Filter Products by Availability to a sidebar.
  3. On shop or category pages, select a date range and click Filter.

Implementation

  • Widget class: includes/class-wc-appointments-widget-availability.php.
  • Front-end script: assets/js/availability-filter(.min).js.
  • Filters products via loop_shop_post_in with min_date/max_date query params.