What problem does it solve?
This Skill prevents broken or duplicate WooCommerce Subscriptions renewal scheduling by guiding you to use the official WCS renewal scheduler flow and lifecycle hooks instead of directly modifying schedule meta or Action Scheduler rows.
Core Features & Use Cases
- Safe renewal timing changes: Updates subscription dates and statuses via
WC_Subscription methods (e.g., update_dates()) so WCS can validate ordering and reschedule canonical Action Scheduler events.
- Correct renewal flow control: Triggers the scheduled renewal action and creates renewal orders using
wcs_create_renewal_order() and wcs_renewal_order_created instead of manual scheduling shortcuts.
- Gateway-specific recurring charge wiring: Uses the gateway-specific scheduled action hook pattern
woocommerce_scheduled_subscription_payment_{gateway_id} for WCS-managed renewals.
- Right business side-effect hooks: Distinguishes “any subscription payment complete” vs “renewal payment complete/failed” and supports retry-related observability without violating retry system invariants.
Quick Start
Use wcs-renewal-scheduler to update a subscription’s next renewal date to 2026-05-15 10:00:00 UTC by calling WC_Subscription::update_dates() rather than editing _schedule_next_payment directly.