wcs-subscription-downloads
Installation
SKILL.md
WooCommerce Subscriptions downloads
Start by identifying which of WCS's two download models is in use. Both ultimately use WooCommerce's core customer-download permission table and delivery handler, but their product relationships and refresh behavior differ.
Choose the correct model
| Model | Product setup | Relationship source | Permission owner |
|---|---|---|---|
| Ordinary downloadable subscription | The subscription product/variation itself is downloadable and has files | Actual subscription line item | shop_subscription object |
| Linked Subscription Downloads | A separate simple/variable downloadable product is linked to a subscription product | woocommerce_subscription_downloads mapping table |
shop_subscription object |
Do not collapse these models. A normal downloadable subscription product does not need the linked-download feature. A linked product may grant permissions without appearing in $subscription->get_items().
Use wc-downloadable-products first when the question concerns core file objects, stable IDs, storage security, bearer URLs, download methods, limits, expiry, or the permission table itself.
Ordinary downloadable subscription items
WCS_Download_Handler runs after Woo grants files on a parent, renewal, or switch order. For each downloadable subscription item, it: