ManageGPLNEWManage every WordPress site from one dashboard · update them all in one clickEvery site, one dashboardFree for 5 sitesNo card needed
Start free
ManageGPLNew
One dashboard for every WordPress site — update everything in one clickUpdate every WordPress site in one clickPremium plugins included
Product edit: Locations tab explains that Customer selected with no venues assigned still offers every published location on the storefront.
PHPStan raised to level 7 (Phase 3b): tier B admin, appointment-form, emails, and loose includes; integrations held at level 6 (phpstan-integrations.neon.dist, npm run analyze:php:integrations).
PHPStan Phase 3a: tier A (slots, api, data-objects, data-stores, recurring) clean at level 7; CI stayed at level 6 until Phase 3b.
Tests: OrderAppointmentDeleteLiveTest covers permanent-delete / Empty Trash under an HPOS-style post_parent sweep, order-delete abort restore, stop_order_delete, and set_appointment_order_id roundtrip (native HPOS+sync-off when available).
Tests: ConfirmationNullProductIdLiveTest and TypedScalarLooseArgGuardTest lock null/loose args into typed helpers and forbid non-nullable native params on WooCommerce-hooked cart/checkout callbacks.
Tests: ResourcesLiveTest covers multi-group occupancy for ATC, slots (dynamic + indexed), checkout overbook, first-pool control, and single-member second pools (#1510).
Dashboard status counts move to WC_Appointment_Data_Store::get_new_appointments_count_this_month() and get_pending_confirmation_count() (HPOS-aware order join).
Fixed
Checkout: carts or orders with a missing product ID no longer fatal when checking confirmation (e.g. Divi pay buttons / gateway availability). Cart/checkout WooCommerce hooks also tolerate malformed filter args without TypeError.
Orders: permanently deleting a trashed appointment that is the sole line on its order no longer shows "Error in deleting the item." (HPOS with sync off was sweeping the appointment row via post_parent before WordPress finished deleting it).
Product edit: Resources stay assignable when Location is Customer selected with no venues assigned (same empty = all A-Z as the storefront). Fixed mode still asks for a location first; shared and already-assigned resources stay editable.
Availability / slots: when a product has two or more resource groups, calendar and add-to-cart check every selected resource’s inventory (not only the first group). Changing any group pick refreshes times so Book Now stays in sync (#1510).
Admin dashboard: "appointments new this month" counts correctly when HPOS is enabled with compatibility sync off.
Admin dashboard: confirmation line uses the pending-confirmation count for singular/plural wording.
Staff dashboard: Trends shows a real chart (or clear empty state) for 7 / 30 / 90 days instead of a black square.
Product Resources: drag one resource onto another to group them, rename the group, and drag a resource out to ungroup. Each group is its own required storefront field (one pick per group, e.g. Bike and Helmet); cart, checkout, emails, and summaries show each group name with its pick.
Improved
Storefront: cart, checkout, order summary, emails, and My Account show the end time or end date when the appointment spans more than one unit (same rule as selection info since 5.5.1).
Product edit: staff, location, and resource pickers say Assign … so choosing a name clearly attaches it to the product.
Availability / slots: build_allocations_from_product() stores group on each snapshot and returns one allocation per group; slot remaining is the minimum across groups. Display uses format_allocations_as_rows() / get_context_rows(); select-resource.php renders one select per group (wc_appointments_field_resource + resource_more[]).
Display helpers renamed off the email misnomer: format_instant_for_display(), get_start_display(), get_end_display(), get_when_display() (When spans; start stays start-only). Filter woocommerce_appointments_when_include_end; WhenRangeDisplayLiveTest locks cart + When parity (#1509).
Recurring pay-first: filters wc_appointment_series_balance_order_amount (balance order line total) and wc_appointment_series_should_settle_balance (gate series settle on balance order paid) for custom installment snippets.
Tests: ObjectCacheClearLiveTest locks targeted clear_cache under ext object cache (foreign transients/locks survive; availability/staff/appointment groups and tracked schedule_fo keys clear; poisoned rule cache refreshes; unrelated post delete is gated).
Tests: RuleMinutesMidnightWrapTest and OvernightTimeAvailabilityLiveTest cover custom:daterange exclusive midnight end (omit empty next-day segment; next day stays bookable on the dynamic path).
Fixed
Caching: with a persistent object cache, appointment saves no longer flush the whole site cache. Only Appointments transients and object-cache groups are cleared, so other plugins' rate limits, locks, and transients survive.
Availability / slots: a not-bookable Date range with time that ends at 00:00 on the next day (common Google Calendar sync shape) no longer closes that entire next day. The empty last-day 00:00-00:00 segment is omitted so only the real busy hours apply.
Recurring: series stay Active until the last upcoming session has passed; Completed no longer means "all sessions created."
Admin panel: changing location on edit (and create) keeps the resource list in sync when switching venues again.
Admin calendar: drag or resize asks for confirmation first, with an optional Notify customer order note.
Admin panel: Pick from a calendar month title is a native month field so far dates are one click away.
Settings → Appointments → Google Calendar: Client ID and Client Secret have a Show/Hide control so you can confirm the configured OAuth client (#1505).
Tests: AdminEmailRecipientTimezoneLiveTest locks staff vs site recipient TZ formatting, grouping, previous reschedule instants, and the block appointment table (#1507).
Fixed
Availability hub: when a staff profile timezone differs from the site, all layers show times in the staff timezone (including suggested open hours and Google Calendar synced labels). Edits still save in site time (#1506).
Admin emails: appointment times use each recipient's timezone (staff see their local time). Previous reschedule times match that zone, and Customer's Timezone is shown like the admin panel (#1507).
Availability hub: wrapping days/months/weeks ranges show Ends the next week/year (same pattern as overnight Ends the next day); switching range type always resets from/to.
Admin menu: Appointments icon uses the default menu gray on first paint on older WordPress (no black flash before recolor).
Admin calendar: live updates reconnect on the server retry interval (about 15s) and pause while the tab is hidden, instead of reopening every few seconds.
Availability hub: range of months (and weeks/days) no longer collapses on save when the start value sorts after the end as text (e.g. September-December) (#1504).
Storefront: selection info shows an end date or end time when the appointment spans more than one unit (e.g. Oct 28 - 29, or 08:30 - 13:00).
Storefront: opening with a date in another month paints that month immediately from bootstrap data (used only for the month it covers).
Admin panel: location and resource option labels show additional cost suffixes like the storefront (e.g. (+$20)).
Admin menu: Appointments uses the product a+clock glyph (WordPress 7.2 SVG Icons API; base64 SVG fallback on older WP) instead of dashicons-clock.
Tests: IcsExporterStaleEntryRegressionLiveTest locks staff DESCRIPTION single \n escaping (#1496); php-date-format-escape.test.ts locks storefront wca_format_date PHP escapes (#1495); ResourcesLiveTest covers display assignment is_appointable when the booking location has no location-scoped room; TranslationAvailabilityIndexSyncLiveTest locks original-product availability for translations.
Wc_appointments_get_product_id_for_availability(); removed WCML/Polylang availability cloning and unused data-store row helpers.
Index minute masks overlay append-only woocommerce_appointment_get_availability_rules deltas once per staff (get_availability_rules_filter_delta → overlay_rules_on_mask).
All appointment wc_get_template calls pass $template_path woocommerce-appointments; outdated-template notice also scans that theme folder.
Build: npm run check:debug-leftovers fails on Cursor agent ingest leftovers and stray debug-*.log files; wired into build / build:no-test (#1500).
Fixed
Storefront: selection dates honor WordPress date-format escapes (e.g. Portuguese l, j \d\e F, Y shows "2 de Novembro" again) (#1495).
Storefront: automatic/display resources no longer block add-to-cart at a venue that has no eligible room.
ICS export: DESCRIPTION staff/resource/add-on line breaks show as real newlines again (no literal \n text).
Admin panel: create footer quotes and order totals include location and resource surcharges again; cost AJAX posts the selected location/resource like availability already did.
Admin panel: resource dropdown lists only rooms for the selected location (no fallback to the full pool when a venue has none), and create waits for a customer resource pick before quoting cost or checking availability.
Appointments export: CSV downloads include the column header row again, and CSV no longer double-loads every appointment before writing the file.
WPML / WCML / Polylang: product availability rules belong to the original product only. Translations use that schedule for slots and the Availability hub (no cloned per-language rules).
Availability / slots: indexed slot lists honor filter-injected availability rules (same as the dynamic path), so busy windows no longer stay bookable when the index is used.
Templates: theme overrides default to yourtheme/woocommerce-appointments/ (headers and loaders aligned). yourtheme/woocommerce/ still works via the locate filter.
Storefront: staff/resource picker no longer calls a leftover local debug endpoint (Chrome no longer prompts for access to other apps on the device) (#1500).
Tests: CartCheckoutLiveTest covers dangling order parent on inactive-cart cleanup and session load; hard-deleted orders assert cascade appointment removal.
Tests: weekday collectors treat max_bookable civil day as exclusive (partial max_check_to window; Johnsansom parity stable on America/New_York mornings).
Fixed
Product Add-ons: "Use once per recurring series" follows Can be recurring? on existing and newly added fields, including when the checkbox is toggled before save.
Product Add-ons: day/month/night products always include duration add-on fees (zero-base packages and priced bases); extended days still bill at the product rate. Duration-only options stay available: set the option price to 0 so the span grows and only the product rate applies.
Product Add-ons: a required Quantity (input multiplier) with min 0 again accepts 0 (base duration only; no add-on cart line).
Cart: deleting a draft (or any) order as cron/Action Scheduler again releases linked in-cart holds; abandoned-cart cleanup no longer treats a missing order ID as a live exemption.
Admin calendar: availability SSE snackbars name the change again (saved or deleted; bursts still collapse to a count).
Admin calendar: reorder-only availability rule saves no longer show an SSE snackbar.
Updated all translations for new and changed strings.
Tests: live suite no longer strips shared WP/WC hooks to silence SSE; pushes gate via wc_appointments_sse_push_enabled, runtime queue reset, safer cache flush, and phpunit memory_limit 768M.
Tests: CartCheckoutLiveTest covers multi-line same-slot checkout (2 allow / 3 reject), confirmed-plus-holds, different times, staff-scoped holds, and single-hold qty 2; index on/off where capacity exclude matters.
Tests: BookingFormAtcLiveTest covers storefront add-to-cart capacity (confirmed/in-cart fill, qty above remaining, remaining seat allow) and sold-individually blocking a second cart line.
Tests: BookingScenarioWritePathLiveTest covers padding×capacity, per-day multi-line, staff automatic/all ATC, requires-confirmation occupancy/mixed cart, overnight multi-hold, addon×capacity, customer TZ ATC, unpaid occupancy, cross-product padding ATC, span=start ATC, admin vs storefront capacity parity, restricted days / min_date crafted POST ATC, multi-day overlap ATC, cancelled/was-in-cart vs complete occupancy, and independent products at the same wall time.
Tests: MyAccountRescheduleContractLiveTest covers reschedule self-exclude, full-slot reject, capacity-2 remaining seat, padding adjacent reject, and staff-all taken reject; CartCheckoutLiveTest locks Store API vs legacy checkout wrappers on multi-hold capacity; RestAppointmentsCreateLiveTest documents that REST create may overbook a storefront-full slot.
Tests: GcalStaffRemoveOnCancelLiveTest locks remove_from_gcal() staff fan-out: staff-only sync, main plus staff, and shared calendar with and without a main event (one DELETE per event).
Tests: IcsCancelContractLiveTest locks cancelled ICS export (no STATUS:CANCELLED) and that cancel emails skip ICS attachments; EmailCancelTransitionLiveTest covers single cancel notifications, series FUTURE suppress, and series ONE per-occurrence cancel; GcalInboundCancelLiveTest covers Google→WP CANCELLED (main cancel, staff detach, last-staff cancel).
Fixed
Checkout: two or more separate cart appointments for the same product and time slot no longer fail availability when their combined quantity still fits capacity.
Google Calendar: cancelling or trashing an appointment now removes the event from staff calendars when only staff calendars are connected (no site calendar or no site event).
Google Calendar: successful event DELETE clears the stored site/staff event IDs; inbound staff detach drops that staff’s event ID (staff event ID map merge no longer blocks removals or updates).
Admin calendar: fixed toolbar and day headers use locked SCSS spacing (no JS height measure); left tracks the admin menu via WP folded breakpoints so Chrome and Firefox stay flush.
Updated Product Add-ons to 8.4.1 (validation, Store API batch, global add-ons search/sort, upload index.html, WordPress Abilities).
WooCommerce minimum supported is 10.6; WordPress minimum is 6.8 (aligned with Product Add-ons).
Updated all translations for new and changed strings.
Tests: AddonSeasonalDuplicateOptionLiveTest covers radio/checkbox purchase when a hidden seasonal option shares the same label; AddonCartCostLiveTest covers cart duration fields, posted duration totals, and hour vs day addon cost rules; AddonStorefrontTitleLiveTest locks fieldset Title (Label/Heading) markup for checkbox, radio, and images, plus image swatch title omitting price when hide price is on.
Fixed
Product Add-ons: radio/checkbox options with the same label as a hidden seasonal duplicate can be purchased again; cart uses the visible option’s price (not the hidden one).
Product Add-ons: hide price and duration labels work again on the storefront after the 8.4.1 update (including image swatch tooltips); option prices no longer wrap onto their own line.
Storefront: add-on Title (Label/Heading from the product editor) shows again for checkbox, radio, and image fields; fieldset/legend styles match upstream so titles do not collapse.
Product Add-ons: cart again skips TM Extra Product Options items when addons carry epo, so both extensions can coexist after the 8.4.1 sync.
Admin panel: header/footer scroll shadows match the calendar chrome and appear from the first pixel of overflow, drawing over fields scrolled under the edges.
Opt-in Playwright smoke: npm run test:e2e (staff change + Show first available against staff-auto-select-in-separate-month on bookingwp.local).
Tests: GcalSharedCalendarMirrorLiveTest covers foreign busy import and write-back skip; GcalSyncUpdatedDescriptionLiveTest locks the description filter BC.
Fixed
Storefront: changing staff with auto-select on keeps the selected date and time when still available; otherwise shows Show first available next to No slots available.
Google Calendar: appointments from another site on a shared calendar import as busy rules (foreign site_url). Editing that busy rule no longer overwrites the Google appointment event.
Google Calendar: restored woocommerce_appointments_gcal_sync_updated_description on event updates (dropped in the 5.0 sync rewrite).
Admin panel: changing day or a duration add-on no longer jumps the form scroll back to the top of the mini calendar.
Admin panel create: WooCommerce Deposits uses the same outlined card as billing, with pay-deposit guidance and payment plans only while paying a deposit.
Admin panel browse: month availability includes the day’s time slots in one request; open browse joins the in-flight prefetch.
Browse helpers: one day_slots_by_date map with shared month/day cache keys; dropped unused month abort wiring.
Tests: AddonDurationSlotListingLiveTest covers get_slots AJAX listing vs cart for +60m, +30m, −30m, minute-unit, and span=start.
Emails: dropped native return/param types on subclassable WC_Email_* override points (PHPDoc kept); PHPStan ignores missingType.return / missingType.parameter on includes/emails/class-wc-email*.
Fixed
Cart: logging back in during checkout restores the in-cart hold; abandoned-cart cleanup no longer deletes a hold already linked to an order.
Admin panel: mini calendar marks a day available only when at least one slot has enough capacity for the quantity field (same rule as the time list).
Storefront: time slots refresh for the full add-on duration (longer or shorter), so late starts that no longer fit are removed from the list.
Emails: custom theme subclasses of appointment emails no longer fatal on PHP 8 when they override trigger() or init_form_fields() without a : void return type.
Storefront: add-ons after the calendar appear once a date (or month) is chosen, so extras that change duration stay visible when no times are left.
Admin calendar: third-party admin notices no longer push the grid down; calendar errors still show flush under the toolbar.
Appointable product: set Padding Before and After separately on one row. Existing padding stays Before; After defaults to 0.
Improved
Availability / slots: the gap between appointments uses After from the earlier booking plus Before from the later one (timed, day, and shared staff). With only Before set (the default after upgrade), identical products keep the same handoff gap.
Admin panel: create/edit recurring uses the same outlined card as billing and add-ons; schedule fields use compact floating labels in one row.
Admin calendar: on narrow screens the period title opens a month or date picker (prev/next hide); week and list show a month label; tapping a month day opens Day view and Back returns to that month.
Padding: padding_duration remains buffer before; added get_padding_after_duration(), get_padding_after_in_minutes(), set_padding_after_duration(), and get_padding_before_in_minutes() (alias of get_padding_duration_in_minutes()). Overlap builders and per_day_booked_totals reserve both sides; day/month get_padding_days_for_fully_booked_dates() expands (before + after) days on each side. Meta _wc_appointment_padding_after_duration via REST (padding_after_duration), product CSV (Padding after duration), and WPML / Polylang. Interim cross-product max() bridge removed.
Tests: PaddingBeforeAfterLiveTest (timed/day, shared-staff gaps, cancelled, empty-window, dynamic vs indexed); ProductConfigLiveTest and SlotsScenarioTest lock 24h hourly listing and after-only / before+after index parity; ProductConfigCheckLiveTest skips notices on simple products; wca-when-deps-ready.test.ts for wcaShared.whenDepsReady.
Tests: opt-in npm run test:php:stress and npm run test:php:smoke; default npm run test:php stays full unit+integration. Clean test-blog setup in tests/phpunit-env.local.example.
Integrations: WC_Appointments_Integration_Page_Optimizers opts form JS out of LiteSpeed / Autoptimize / WP Rocket Delay-Defer on form pages. Appointable product General number/unit widths moved into admin.scss.
Admin panel: create opens upper-biased on narrow screens; tighter floating-label insets; availability dims while checking; status chips match border to label on create/edit; customer search drops the clear control; overnight +Nd sits beside the End date floating label.
Admin calendar: Screen Options/Help tuck with a peek and hide the toolbar when open; toolbar stays fixed under the admin bar; borderless period/view controls; wider padding on large screens.
Storefront: Customizer Selection color skips inline CSS when it matches the default.
Fixed
Storefront: multi-day day-duration products again highlight the booking span after picking a start day; timezone abbr shows one tip; the form still initializes when page optimizers delay jQuery or script params.
Availability / slots: 24h duration with an hourly grid again lists each hour when the next day is also appointable.
Admin panel: Select2 aligns on create from Add New; focused fields scroll above the mobile keyboard; mini calendar fits narrow panels; edit keeps Update in the footer (disabled until dirty).
Admin panel create: Product Add-Ons date picker no longer closes the panel; footer cost refreshes when add-on prices change without duration.
Admin panel: product dropdown lists appointable products again on non-calendar screens; customer search and Customer label translate on standalone create/edit.
Admin panel: Pick from calendar keeps the selected day for staff timezones; day/all-day edit availability uses civil dates; mini calendar refreshes when product, staff, or quantity changes; switching product on edit updates date/time for the new type without jumping the panel.
Admin panel: staff on unstaffed products is optional for managers only and ignored in availability checks.
Admin calendar: Order Total after panel create is correct; narrow layouts keep the filter panel, month cells, and timed events in bounds; day headers stay flush under the fixed toolbar with admin notices below.
Admin calendar: midnight appointments show when staff timezone differs from the site; opening a view scrolls to now or 08:00 in week/day, and to the top in month/list.
Admin calendar: Screen Options and Help are usable again for admins and staff (WooCommerce sticky header no longer covers them).
Admin: legacy Create as a Customer again books for the selected customer; configuration notices no longer appear on non-appointable products.
Appointable product: Padding Before/After keeps equal gap when the unit wraps and no longer sits flush against the field above.
Tests: AdminCalendarAvailabilityStripeTimezoneLiveTest (PHP) and admin-calendar-availability-rule-timezone Vitest lock civil vs timed stripe timezone policy for staff UTC, Australia/Perth, and America/Los_Angeles.
Tests: SeriesCartCheckoutLiveTest covers series creation on on-hold, processing, completed, and partial-payment (pending is not hooked).
Tests: RuleMinutesRruleCivilDayTest, RruleCivilDayAvailabilityLiveTest, RuleMinutesOvernightApplyEvaluateTest, and OvernightTimeAvailabilityLiveTest cover overnight/all-day RRULE civil-day parity and time:N overnight vs end-at-midnight.
Tests: SlotsTimezoneLiveTest and AdminPanelTimezoneLiveTest cover store/staff timezone boundaries for slots and panel availability (Fake UTC chip fields).
Tests: IcsExporterStaleEntryRegressionLiveTest covers offset-based store timezones (gmt_offset / +01:00) so VTIMEZONE generation does not fatal when getTransitions() returns false.
Build: npm run build runs test:js (calendar timezone Vitest) alongside gcal and PHP suites.
Improved
Admin panel: create/edit fields use outlined floating labels (Checkout-style); status uses compact filter chips; attendance is hidden on create, editable on edit, and muted text on view; Pick from a calendar stays a compact trigger until opened.
Admin calendar: sticky toolbar and day headers under admin chrome with one page scrollbar; the toolbar docks under the admin bar while you scroll.
Admin: calendar/panel product list loads with a light id/title/color query instead of hydrating up to 200 full product objects on every admin load.
Admin panel browse: day availability evaluates each rule once; all-day RRULEs reuse the in-request path instead of rebuilding minutes every civil day.
Admin panel: primary form controls use 14px body text; series list shows date and time ranges on separate lines.
Admin panel create: browse no longer auto-opens when a slot is unavailable; Add New without calendar prefill leaves date/time empty (date-only calendar picks still auto-select the first time).
Admin panel: product select uses preloaded products (instant); clear (x) removed on create/edit; duplicate titles append SKU or #id; duration sits on the When row; line Total shows only when it differs from order total.
Admin calendar: compact one-row toolbar; Add New is a leading filled button (label on wide screens, icon-only on narrow); filter button shows an active-count badge only (selections stay in the filter panel).
Admin calendar: hovered and selected events use a white ring plus lift; selected events rise above overlaps.
Fixed
Admin calendar (staff): appointments you create for products without assigned staff stay on the calendar immediately (creator matches the locked staff filter, same as after reload).
Admin panel create: real midnight slots (00:00), including admin-TZ midnight, keep a timed calendar preview and availability checkmark (slot timestamp distinguishes them from date-only placeholders).
Admin panel: narrow view fills the viewport; series uses panel scroll; customer timezone and cost lines stack; series rows are date | status | open.
Admin calendar: switching the appointment panel from view to edit no longer flickers the calendar event (preview ghost only appears after the draft schedule changes).
Admin calendar: full-day unavailable stripes stay on the civil day (not shifted by admin timezone); stripe tips on hover/tap instead of a modal; tapping a stripe no longer opens create; empty cells open create again.
Admin calendar: sticky WooCommerce header chrome scoped to the calendar page only; staff Screen Options/Help no longer inflate Firefox scroll; empty preload ranges still seed so first paint skips REST; availability rules load again when indexed cache is enabled.
Admin calendar SSE: after a recurring series materializes, the view panel gets the full occurrence list and package pricing; one series create snackbar with customer and pattern.
Admin calendar SSE: new appointments stay after month navigation (cache insert); payloads build only when queued and flush once per request; burst creates/bookings collapse to one snackbar count.
Admin calendar/panel (staff): product preload respects Create Appointments for Any Product; create auto-selects the logged-in staff when assigned; toolbar Add New uses the same path as slot-pick (no full reload).
Admin panel create: required date/time errors show under those fields and clear when valid; hourly auto-select no longer rolls the form date forward when staff timezone differs from the site.
Admin panel: Staff field shows or hides from product preload (same as add-ons); create availability responds faster; day-duration checks use the correct civil day when staff timezone differs; timed availability keeps slot timestamps when site and admin browse days differ.
Admin panel browse: skeleton cells under a kept header; day click and view toggles reuse in-memory data; SSE invalidates browse caches while open; product switch reloads the open mini-cal.
Availability / slots: overnight RRULE blocks (e.g. weekly Fri 22:00-02:00) again split across civil days (evening on the start day, morning on the next).
Storefront recurring: create the series when the order reaches on-hold (cheque/BACS), not only processing/completed, so offline payment checkouts still materialize appointments.
ICS export: offset-based store timezones (e.g. +01:00 from gmt_offset) no longer fatal VTIMEZONE generation when DateTimeZone::getTransitions() returns false.
Tests: global-only availability with indexing enabled (plain and staff products), index readiness ignoring malformed scoped cache rows, and product config probe when global rules start after the initial 14-day window.
Fixed
Admin panel: product configuration probe scans the booking horizon in capped chunks (14/30/60 days) instead of only the next two weeks, so global rules or RRULEs with a later start do not trigger false "no bookable times" notices.
Indexed availability: index readiness and multi-staff slot generation align with fetch guards (malformed scope rows no longer mark the index ready; empty indexed batch falls back to dynamic/global rules); fixes global-only rules not applying and false product config notices after 5.4.5.
PHPStan raised to level 5 - type narrowing, expanded plugin and WordPress stubs, and dead-code cleanup across admin, data stores, API, GCal, and integrations (clean baseline).
Fixed
Product Add-ons integration: decode jQuery .serialize() form payloads with wp_unslash() before parse_str() in legacy cost filter.
Admin calendar: guest customer labels on HPOS stores read billing from wc_order_addresses (not legacy _billing_* order meta), restoring "Name (Guest)" on calendar preload and SSE updates.
PHPCS: WPCS security ruleset (phpcs.security.ruleset.xml, npm run lint:php:security), shared path rulesets and request helpers; lint:php / build gate runs security scan + PHPStan; optional lint:php:standards / lint:php:quality; PHP-CS-Fixer via format:php.
Rate limiting: filterable enabled, guest_only, and strict_max_requests; named guest-read defaults on WC_Appointments_Rate_Limiter.
Tests: PublicAjaxSecurityLiveTest, PhpstanLevel4RegressionLiveTest, IcsExporterStaleEntryRegressionLiveTest, MyAccountRescheduleContractLiveTest, CalendarPreloadParityLiveTest (calendar preload vs independent eligibility SQL; non-UTC and all-day; attribute term labels), RequestBoundaryRegressionLiveTest, SanitizerBeforeParseGuardTest, and SseTopicContractVerificationTest (request transport boundaries, PHP/JS SSE topic contract, FC week/day header zone).
Improved
Admin calendar preload: eligible-ID query plus batched postmeta hydration; batched order meta (no per-order WC_Order hydration). Recurring series package summary on bulk fetch (get_panel_preload, one load per series id); full appointment panel still loads on open.
PHPStan raised to level 4 - dead-code cleanup across admin, slots, API, GCal, and core (clean baseline).
Admin panel: remove Cancel from create/edit footer (close via X / backdrop).
Admin calendar: Google-style grid (horizontal week lines only in month, stacked week/day headers, centered month dates); neutral toolbar chrome (admin body text/borders), segmented view switcher, primary + Add New beside Filters (icon-only; label on hover/aria).
ICS export: log a warning when unloadable entries are skipped (WooCommerce → Status → Logs).
Fixed
Admin calendar: toolbar spans full wrap width below Screen Options/Help; staff without WooCommerce header get Add New in the toolbar; staff/creator filter uses EXISTS (not INNER JOINs); Fake UTC civil preload range and YmdHis row parsing (not strtotime); shared excluded-status list (cancelled visible; holds/trash/drafts hidden) on SQL query, legacy API, and frontend; orphan/deleted post_parent order IDs pre-filtered before batch order load; availability rule background stripes reload when switching months.
REST API: appointments get_item_schema() extends the parent schema instead of starting from null.
Sanitize/unslash POST/GET at origin across storefront AJAX, data stores, cart, SSE, cron, widget, admin (AJAX, settings, calendar, list table, exporters, meta boxes, product edit), WPML, Google Calendar, and integrations; prepared SQL for lookups and migrations; escape output in admin views; guest-only rate limit preserved for cached pages with optional nonces.
Storefront/admin AJAX: parse jQuery .serialize() form payloads before per-field sanitization (not sanitize_text_field() on the encoded string - destroys %XX sequences for timezones, times, and add-on text).
SSE: preserve dotted event names (appointment.created) in the stream; sanitize_key() stripped dots and broke admin calendar live updates.
Admin calendar: week/day column headers use browser-local date (not UTC parts); legacy week/day data-time and calendar_day= links use site timezone (not gmdate); batched order line item meta resolves global attribute term names (not raw slugs) in the appointment panel.
Add Appointment and My Account series actions: read REQUEST_METHOD from $_SERVER (not filter_input( INPUT_SERVER ), unreliable under some SAPIs).
Legacy install migration: delete product availability post meta by key after table migration (not a single rule value).
ICS export: skip unloadable appointment entries so stale IDs do not fatal calendar generation.
Removed
WC_Product_Appointment_Rule_Manager::get_minutes_from_rules() remains as a compatibility shim; use WC_Appointment_Slots_Rule_Resolver::build_minute_mask() instead.
Orders: get_appointment_ids_from_order_item_id() triggers wc_doing_it_wrong when $order_id is omitted (except opt-in order-line _appointment_id cache).
Fixed
Indexed availability: weekday time:N rules count only matching days; re-enable no longer wipes inline indexing; backfill pending flag clears/re-queues stale jobs and stops on zero-gap batches.
Google Calendar: scheduled sync is forward-only unless admin full re-sync; inbound sync skips stale events (event ID / site_url mismatch).
Availability / slots: overlap day keys use Fake UTC civil midnight so 00:00 wall slots stay on the correct day on negative-offset stores.
Orders: order-scoped line-item lookup ($order_id on get_appointment_ids_from_order_item_id) - orphaned _appointment_order_item_id no longer shows another customer’s appointment; line delete clears the link before ID reuse.
Cart: session load removes holds tied to terminal orders or past start dates and releases in-cart appointments to was-in-cart.
Twilio SMS integration: restore hook registration removed in 5.1.0 (Appointments SMS settings, scheduling, and notifications with WooCommerce Twilio SMS Notifications 1.12+); {appointment_date} / time tokens use get_start_date() / get_end_date() so all-day civil dates match emails and order summary on non-UTC stores.
All-day (day/month duration) appointments after checkout: order summary, emails, and My Account show the same civil date as cart/checkout - get_start_date() / get_end_date() and email formatters use Fake UTC civil digits (gmdate + date_i18n) instead of wp_date() on stored midnight tokens, which shifted the calendar day on non-UTC site timezones.
All-day bookings: _local_timezone is written only for timed products in wc_appointments_get_posted_data(); WC_Appointment::set_all_day() / set_local_timezone() and the data store drop customer TZ meta on all-day saves - civil dates stay timezone-agnostic without per-caller guards.
Storefront appointment cost quote when catalog prices are entered inclusive of tax: footer HTML uses the same display amount as AJAX raw_price (not tax-stripped line_net), so logged-out customers see the correct gross total.
Availability / add-to-cart: day- and month-unit checks use Fake UTC civil tokens (gmdate / shared slot-token helpers) for past-date guards, span end calculation, and day-slot capacity keys - not wp_date() / site-TZ DateTime on the posted timestamp - so same-day bookings and slot lookup stay aligned on non-UTC stores (e.g. America/Vancouver).
Storefront calendar (no staff preference, day/month + staff): multi-staff indexed slot generation no longer runs the minute-mask loop on day/month products - use per-staff civil-day slots and union merge instead; no-preference day summary uses per-staff OR (max), not summed slot counts across merged fragments.
Admin panel create: day/month availability check and save use Fake UTC civil midnights for date/month ranges (matches storefront slots and get_day_civil_span_capacity keys); admin month calendar bounds for day/month products use the same civil UTC axis.
Is_appointable() past-date guard for day/month products uses wc_appointments_is_past_request_date() (Fake UTC civil axis) instead of date() on _date, matching availability checks.
Admin panel create success message formats saved day/month ranges from appointment timestamps via wp_date() (not strtotime() on date strings).
Improved admin panel styling with bigger input selection.
Admin panel create/edit: datetime row shows a loading state while product details, first-available auto-pick, day slots, or availability AJAX run; success/error only after the check completes.
Admin panel create: first-available auto-pick scans the bookable horizon in 14-day chunks and stops at the first slot instead of loading the full range up front.
Fixed
Admin panel create: availability no longer flashes loading twice or clears to blank before first-available prefill; date-only calendar prefill waits for day slots before checking; browse does not re-open after the user closes it during the same unavailable episode.
Admin panel: datetime loading no longer sticks when day-slot AJAX fails or returns empty, when a superseded availability request aborts, or while bootstrap waits only on an in-flight slots request (not missing cached data).
Slots / day & month products: timed global RRULE blocks (e.g. weekly Tue 4-6pm) block the whole civil day again - date-level checks use RRULE occurrence expansion, not midnight-only overlap, so higher-priority global rules override product day rules (RuleMinutesRruleCivilDayTest).
Admin panel browse: slot chips show remaining capacity (e.g. 1 available) on multi-capacity products when only one place is left, not only when two or more remain.
Slots: dynamic availability (indexing off) paints full half-open unappointable ranges on the minute mask - priority blocks no longer leave appointable boundary minutes (e.g. 10:00-11:00 block showing 10:59 slots); matches indexed mask painting.
Slots / calendars: minute/hour bookings that start at site midnight (including long durations such as 12 hours) block capacity again - timed overlap day-keys use Fake UTC site civil buckets for both occupancy indexing and slot lookup instead of mixing wp_date() site midnight with the civil UTC-midnight fast path.
Slots / calendars: multi-day day-unit occupancy for admin-created (site-local midnight) bookings - civil overlap keys use the site calendar date (Fake UTC) so every booked day blocks correctly (e.g. June 4-5 for a 2-day booking starting June 4); wc_appointments_get_posted_data() stores matching Fake UTC start/end for new day/month appointments.
Slots / calendars: multi-day day-unit products block every booked civil day again - occupancy uses live appointments; overlap day-keys use timezone-agnostic civil dates (gmdate on stored tokens), matching slot tokens, not wp_date() site-local midnight.
Admin panel create: first available date/time via one AJAX call (WC_Appointment_Slots_Provider::get_first_available_slot, same as storefront), including when the first slot is outside the current month; calendar day click/drag date-only prefill auto-picks the first time or opens browse once with noSlotsOnDateSelect when that day has no slots; browse auto-opens only on unavailable validation (not during silent auto-pick) and stays dismissible (no immediate re-open after close until date or product changes); live preview placeholder while slots load; panel expands when the product form is ready.
Slots / calendars: minute/hour day availability (storefront day_data, admin mini-calendar, time-slot lists) counts only bookable slot starts via shared WC_Appointment_Slots_Collection::slots_for_day_summary() on the same get_collection() engine - fully booked days no longer stay selectable when only sub-duration engine segments remain.
Slots / time picker: Availability check → The starting slot only no longer lists grid starts in appointable fragments shorter than the booking duration (phantom evening slots such as 19:00 on 12h/12h products when the index leaves a tail after a gap); full-day ranges still allow starts when duration exceeds the window (e.g. 25h in 24h).
Checkout validation (WC_Appointment_Cart_Manager::validate_appointment_order): re-validates cart slots via WC_Appointments_Controller::get_indexed_total_available_for_range() (same slot_matches_requested_range tolerance as add-to-cart) instead of strict start_ts equality; all staff together uses staff id 0 fan-out like is_appointable(); in-cart holds are excluded from overlap during the check.
Staff all together: cart booking no longer collapses multi-staff _staff_ids to a single _staff_id during WC_Appointment_Booking_Handler::create_appointment() availability merge.
Admin panel: WooCommerce Deposits on create - calculate_costs / create_appointment honour deposit choice and tax display (incl./excl. catalog); deposit footer quote and order item meta (_deposit_full_amount, etc.) match storefront; pay-deposit hides footer price edit (product deposit rules); pay-in-full edits full service price via raw_full_price; mistaken deposit-only overrides corrected on save.
WooCommerce block email editor support for appointment transactional emails (synced block templates under templates/emails/block/, hook-driven parts under templates/emails/parts/, personalization tags, preview context, admin styles).
Date picker default date uses WC_Appointment_Slots_Provider::get_first_available_slot() which leverages Collection day summaries to skip unavailable days. Complexity reduced from O(all_slots) to O(days + slots_in_first_available_day).
WC_Product_Appointment::get_first_available_slot() and get_slots_in_range_lazy() (and private get_slots_lazy_by_duration / get_slots_in_range_for_*_lazy helpers) removed; use WC_Appointment_Slots_Provider::get_first_available_slot().
Removed deprecated dead code with no external calls: 11 methods from WC_Appointments_Controller (deprecated 2.4.9-4.7.0), 5 functions from wc-appointments-functions.php (deprecated 1.15.0-5.1.0), and 3 methods from WC_Appointment (deprecated 4.2.0-5.3.8). Deprecated code still in use internally was retained.
Removed deprecated dead code from WC_Appointment_Slots_Legacy_Adapter: get_time_slots(), get_available_slots()
Admin appointment panel (wcaPanel): localized incl./excl. tax short labels from WooCommerce; footer cost hint and add-on section respect wc_prices_include_tax() and whether tax is enabled; AJAX posts (wc_appointments_panel_cost_excl_tax, add-on incl./excl. flags, override excl. flag) only when the catalog is exclusive so net/gross semantics stay consistent.
Product Add-Ons integration: panel AJAX uses filters so admin add-on price display and suffix follow the same inclusive/exclusive catalog basis as the appointment panel.
Admin appointment block templates: admin edit link uses the same printf( esc_html__( … ), '<!--[tag]-->' ) pattern as WooCommerce core block emails (e.g. store email / customer name in default content).
Update translations (+19 new strings).
Fixed
Admin product Custom availability rows (html-appointment-availability-fields.php): date/time display no longer converts using get_staff_timezone( get_current_user_id() ), which applied the viewing user’s saved appointment timezone to everyone (including administrators). Uses WC_Appointments_Timezone_Helper::get_admin_user_timezone() so store admins and shop managers see site wall times; staff-only users still see their profile timezone. Google/RRule summary only treats kind_id as a staff user when the rule kind is availability#staff (not product/global kind_id).
Admin user profiles now show a single appointment timezone selector for all users. Staff profiles use the shared field while keeping the staff profile navigation section and enhanced searchable timezone picker.
Indexed availability: manual Re-index no longer raises per-rule limits so high (e.g. thousands of RRULE occurrences or a full year of days in one pass) that a single AJAX chunk could hit browser/proxy timeouts despite batching. WC_Appointments_Cache_Availability::run_rule_index_pass() uses modest multiples of the normal per-pass caps; rules that still need more work are re-scheduled as before.
Unified slots when a specific staff is selected: WC_Appointment_Slots_Rule_Resolver::build_minute_mask (dynamic rules) and WC_Appointment_Slots_Data_Normalizer::build_minute_mask_from_index_rows (indexed cache) now apply matching staff-scope rows inline on the main minute mask in sorted override order, instead of replacing the mask with a staff snapshot that could resurrect minutes a higher-priority global/product not available row had already cleared. Rule priority vs. staff overrides now match between indexing on and off.
Indexed full-day row types days / months / weeks: minute-mask painting clamps the day span at 1440 minutes (end of civil day) so the mask tail past midnight is not left appointable from index timestamps; avoids rule-blocked calendar days appearing clickable when availability indexing is enabled.
Legacy storefront calendar payload (WC_Appointment_Slots_Legacy_Adapter::collection_to_scheduled_days): days with unavailable status are also copied into fully_scheduled_days for the same date keys, because date-picker.js treats fully_scheduled_days as non-clickable; rule-only unavailability no longer leaves those days selectable when the modern day_data path already marks them closed.
Admin appointment panel: create success schedule line uses store date/time formats (wc_appointments_date_format / wc_appointments_time_format); when the acting user’s admin timezone differs from the site, text is derived from start/end timestamps via wc_appointment_timezone_locale so it matches the times they picked. Timezone context uses abbr.wc-appointments-tz-abbr beside the line (same pattern as the edit panel When row), not parenthetical suffix text.
Admin appointment panel edit mode: footer no longer shows a live-calculated price (slot/product rules); it could disagree with view-mode order line totals, and cost is not editable there. View mode still shows pricing from the order.
Admin appointment panel: create submit sends wc_appointments_field_start_date_timestamp when a slot is selected so server cost matches the footer (fixes line total 0 when the price field was never focused). Order line total always adds Product Add-Ons to the appointment base; price override prefills/commit uses appointment base only (footer raw minus addon cost) so add-ons still apply after touching the price input.
REST GET wc-appointments/v2/appointments/{id}: embedded order_info now matches calendar batch order payloads - each line item includes subtotal_tax / total_tax, and the order includes total_tax, discount_tax, and coupon_lines. The admin appointment view panel Cost/Tax row uses these fields on first open; previously they were omitted so Tax could appear only after closing and reopening (calendar-loaded appointments already had the fuller shape).
Admin manual appointment creation when WooCommerce prices are entered inclusive of tax: AJAX cost display and order line totals align with the inclusive/exclusive catalog basis (appointment base + Product Add-Ons as one tax-aware bundle on the line so calculate_totals() does not stack VAT on top of tax-inclusive amounts).
Admin calendar: on expired nonce/session (REST 401/403), show an expiry banner with reload link instead of failing silently after long idle periods.
Admin appointment panel: create/edit success step uses a light success-tinted circular badge for the checkmark (aligned with other success affordances), not a plain large icon.
Removed deprecated per-product customer_timezones; timezone support is site-wide. has_timezones() now reads wc_appointments_timezone_support_enabled (default true). Removed get_customer_timezones / set_customer_timezones, related data store mapping, admin and REST fields, and WCML/Polylang sync for that setting.
Fixed
Admin timezone display: appointments_time_zone cookie no longer applies in admin/REST. Only staff (providers) may use profile timezone in admin; admins and shop managers always see site timezone. Remote staff can still set profile timezone.
Admin create flow, existing order: order number no longer appears twice in Select2 and the selected chip - both prefixed # + internal ID onto labels that already included the display order number.
Legacy calendar staff view: staffed appointments no longer also list under Unassigned - $is_creator matched creator_id === 0 because (int) 'unassigned' === 0; creator shortcut now requires non-zero creator_id.
Manual appointment on existing order (admin AJAX): line meta used public appointment_id, so emails/item meta showed an extra row. New rows use _appointment_id only (checkout parity); formatted order item meta strips legacy public appointment_id for display.
Admin browse day slots: discounted price display (del / ins) was React-escaped; .wca-slot-price now renders with dangerouslySetInnerHTML (same as panel footer).
Recurring time:range: same-day windows ending at 00:00 were misclassified as overnight (string order: 00:00 < 08:00, 24:00 < 08:00). WC_Product_Appointment_Rule_Manager / WC_Appointment_Slots_Rule_Minutes now use minute-based wrap helpers (is_wrap_midnight_hhmm_pair / is_wrap_midnight_time_pair); evaluate_rule_for_timestamp shares the same bounds. Availability cache indexing aligns with slot rules for 00:00 end-of-day, maps 24:00 → 1440, and sets same-day eff_to_min = 1440 when needed. time:range overnight at midnight merges evening (from-24:00) with morning (00:00-to) when the prior day is in range (RuleMinutesMidnightWrapTest).
Unified slots + woocommerce_appointments_slots_display_pricing: WC_Appointment_Slots_Pricing::compute_slot_price_raw() returns the full filtered slot price when the filter runs (not only when below default). WC_Appointment_Slots_Collection::serialize_slots() writes price_data.display / price_formatted HTML; the lazy formatter had read a non-array price from jsonSerialize(), so strikethrough/sale never reached unified JSON.
Availability rules: changing range_type (e.g. Date range with time → Days) clears unused from_date / to_date via apply_json_rule_to_availability() (time:range, custom:daterange, store_availability still keep dates), so weekly/monthly rules are not skewed by stale columns.
Indexed availability cache: indexer ignores stray from_date / to_date on days, months, weeks (same as recurring time / time:N), so corrupt rows no longer shrink the cache window until re-saved.
Admin appointment save (WC_Appointment_Meta_Box_Data::meta_box_save): failed start/end validation now sets self::$saved_meta_box before return (matches success path), avoiding duplicate admin errors or extra save_post work in the same request.
Day-unit products when add-ons (or appointment_form_posted_total_duration) extend past base duration: WC_Appointments_Controller::get_exact_available_capacity_for_slot() no longer uses the multi-day start row only shortcut (it skipped later days) or get_extended_range_available_capacity() for that span (UTC civil-day mismatch caused false unavailability). Added get_addon_extended_day_span_capacity() (same UTC keys as get_multi_day_available_capacity(), min capacity across span days). Minute/hour add-on extension unchanged.
What's New admin screen (html-wc-appointments-whats-new.php): admin appointment panel behavior is now described and illustrated clearly - by default the panel anchors beside the selected calendar appointment (prefers right, then left, centers only when neither side fits), with backdrop and roadmap/changelog wording aligned.
Fixed
Admin appointment save (WC_Appointment_Meta_Box_Data::meta_box_save): blank or invalid start/end date (or missing time when not all-day) no longer calls mktime() with non-integer parts (PHP 8+ TypeError / fatal). Invalid input shows a WooCommerce admin error and the appointment object is not updated on that request.
Unified Slots Standardization (part 1): WC_Appointment_Slot embeds projected business/display TZ metadata, wall times, formatted labels, status/bookable, and selection helpers so storefronts render slots without extra timezone math.
Slots provider/engine accept optional display_timezone; WC_Appointment_Slot::project_display_fields() centralizes projection; resolve_display_timezone() pins day/month and non-timezone products to business TZ and validates IANA zones for timed products.
WC_Appointment_Slots_Collection::get_day_summaries_by_display() groups by display_day; calendar AJAX includes display_day_summaries while legacy scheduled_days remains for compatibility.
WC_Appointment_Day_Summary JSON adds display_day, display_date_formatted, selectable, and first/last slot hints sourced from projected slots.
Fixed
Bundled Product Add-Ons integration JS: strip esbuild's top "use strict" in build-js-addons; initialize window.WC_PAO; declare quickview product_price; broaden PaoValidation minify post-replace for renamed locals.
Slots engine: time-slot start step again uses the product interval (base) when it differs from duration (e.g. 90 min service every 2 hours). 5.3.4.1’s min(duration, interval) grid for all minute/hour products had caused starts every 90m instead of every 120m in that case; duration only defines block length, not the cadence between start times.
Day-duration availability and checkout validation are now timezone-agnostic across both negative and positive UTC offsets by aligning day-key generation and matching in slot display, indexed capacity lookup, and multi-day fallback validation.
Rule capacity evaluation now correctly returns zero for non-appointable matches in capacity mode, preventing disabled all-day dates from appearing available when global and product-level rules overlap.
Availability rule sorting now applies time-rule specificity only when comparing two time-family rules, so date-specific unavailability (custom/date-range) no longer gets overridden by weekday time rules on the same day.
Indexed availability: availability rules saved while the indexed cache is disabled are queued and processed when indexing is turned back on (bounded synchronous pass for the first batch, Action Scheduler for overflow), avoiding empty or stale cache after long periods with indexing off.
Indexed availability: custom rules that only store YYYY-MM-DD bounds in from_range/to_range (with empty from_date/to_date) now anchor the indexer to that window so far-future custom blocks are not skipped on the first bounded pass.
Indexed availability: open-ended recurring non-RRULE rules (weekday time:*, days, months) prime through the cache horizon on a cold first pass instead of only the per-pass day chunk, so recurring weekdays do not disappear until background continuation runs.
Admin create success message now uses canonical server-provided schedule text to prevent date shifts caused by client-side timezone reformatting.
Multiple appointment_form shortcodes/blocks on the same page now keep datepicker state isolated per form; with auto-select enabled, one form no longer shifts another form's calendar month/year.
PHP 7.4 compatibility: removed PHP 8.0+ union return types from several methods (e.g. string|false, WP_REST_Response|WP_Error) that caused parse errors on PHP 7.4; @return PHPDoc preserved so behavior and tooling contracts stay documented.
PHP 7.4 compatibility: slots subsystem (value objects, collection, engine, provider, legacy bridge, REST v2 slots) no longer uses PHP 8.0+ syntax that failed to parse on PHP 7.4 - readonly typed properties, named arguments in WC_Appointment_Slot construction, trailing commas in function parameter lists, and match (replaced with equivalent switch / conditionals). Runtime slot math and responses are unchanged.
PHP 7.4 compatibility: Google Calendar (WC_Appointments_GCal) and the appointment product model (WC_Product_Appointment) no longer declare PHP 8.0+ union types on properties (int|false, string|false, int|string|false); types are documented in PHPDoc and values/behavior stay the same.
REST API v1: Fixed critical bug in Products controller where appointment-specific fields (duration, interval, staff assignments, etc.) could not be updated via PATCH/PUT requests due to incorrect use of array_keys() in the update loop.
Timezone display setting now only controls timezone UI/selection by context (frontend/admin/all); when disabled, timezone picker behavior is suppressed and booking/slot/cost calculations consistently fall back to site timezone.
Google Calendar: Importing or restoring synced availability rules (including backup restores) no longer triggers rule sync to Google Calendar.
Google Calendar: manual sync from a staff profile now pulls that staff’s calendar; sync_from_gcal() no longer ignored set_user_id() when called without a user ID argument.
Google Calendar: staff calendars eligible for automatic multi-calendar sync now include users with the wc_appointment_staff role as well as shop_staff; role list is filterable via wc_appointments_gcal_staff_roles_for_sync.
Sold out snippet: add_filter( 'woocommerce_appointments_include_sold_out', '__return_true' ); not rendering fine on frontend.
End slots might be cut off due to wrong timezone calculations.
Sorting time slots sometimes puts time slot from end to the middle of the array.
Prevent spill of time slots from other days into viewed day.
Day/month duration products: collection day-bucketing used UTC while engine emits site-local midnights, so storefront calendars could mark all days unavailable or highlight wrong days; bucket with site-local dates for day/month, keep UTC for minute/hour slots. Align to_day_data customer-day mapping with legacy scheduled-days. Use wp_date / site TZ for provider collection date ranges.
Admin panel: resolved "Call to unknown method: WC_Product::get_staff_ids()" by ensuring it is only called on valid appointment products with the missing method check.
Product Add-Ons duration + padding: storefront cost/availability checks for time-based products now include padding in extended-range slot coverage, preventing false "Sorry, the selected slot is not available." when add-ons extend duration across slot boundaries.
Staff availability rules are now indexed to the availability cache during save (synchronously), same as global rules, so availability is correct immediately after saving.
Staff rule indexing was previously deferred to async jobs and could result in corrupted or missing cache entries; indexing now runs in the same request after the transaction commit.