Trustpilot | Site Banner Q4 2026

Banner image
Product Icon

WooCommerce Bookings

WooCommerce Bookings is the official WooCommerce extension that lets store owners sell appointments, reservations, rentals, or classes with bookable time or date slots. It supports fixed time slots or flexible ranges, group and individual pricing, and resources — staff, rooms, or equipment — each with its own availability to prevent double-booking. It syncs with Google Calendar and works with any WooCommerce payment gateway. It's a paid annual extension with a 30-day money-back guarantee.

Developer: need a filter for a Bookable Product’s min_date and max_date

First: It’s great that there are lots of filter hooks throughout this extension (way more than are listed in the documentation). We’re able to use them to tweak functionality in ways that are really specific to our use case.

One great one is the ‘woocommerce_booking_get_availability_rules’, which lets us programatically change a product’s availability on its booking form page based on certain criteria. But we can’t change the earliest and latest available times, which are stored in separate variables (min_date and max_date) from the availability rules array.

I get why this happens: these are calculated on the fly every time a product is viewed, whereas the “rules” only need to be recalculated when the product or resource is changed in the back end.

But conceptually, the min and max start dates are part of the availability rules, and it doesn’t really make sense to be able to filter all the rules except these. Please add a filter for each/both of these! If anyone at Woo wants more details about how I’m trying to use this, feel free to email me.

Author

Anonymous

Current Status

Open

Last updated: March 25, 2015

1 comment

Log in to comment on this feature request.

  1. Yoni says:

    I asked for this via a support ticket and it got added! Thanks!

Use of your personal data
We and our partners process your personal data (such as browsing data, IP Addresses, cookie information, and other unique identifiers) based on your consent and/or our legitimate interest to optimize our website, marketing activities, and your user experience.