Documents
-
Subscription Product Function Reference
The WC_Subscriptions_Product class is the Subscription extensions counterpart to the WC_Product class. It is used to extend the WC_Product class provide an API for accessing details of a subscription product type. WC_Subscriptions_Product::get_price_string Returns a string representing the details of the subscription. For example “$20 per Month for 3 Months with a $10 sign-up fee”. Usage […]
-
Subscriptions 2.0 Deprecated Hooks & Query Monitor Warning
Subscriptions 2.0 changed the way data was stored and instantiated. Because of this, it needed to deprecate a large number of existing hooks. Some of these hooks had dynamic names, i.e. actions/filters where we don’t know what the hook actually is at run-time because it includes a payment gateway ID or another piece of dynamic data we […]
-
Subscriptions Action Reference
If you are looking for a guide to creating and managing subscription products in a WooCommerce store, please refer to the Store Manager Guide instead. This document provides a reference for a few of the more important action hooks triggered by the WooCommerce Subscriptions extension. It is not an exhaustive list of all actions triggered […]
-
Subscriptions Data Structures & Storage
This guide introduces the fundamentals of the data structures used to instantiate and work with a subscription data with the WooCommerce Subscriptions extension. It is not intended to provide tutorials on how to achieve certain tasks with the subscription object, or as a comprehensive reference of all the subscription properties and methods. Subscription Products vs. […]
-
Subscriptions Filter Reference
If you are looking for a guide to creating and managing subscription products in a WooCommerce store, please refer to the Store Manager Guide instead. This document provides a reference for a few of the more important filter hooks triggered by the WooCommerce Subscriptions extension. It is not an exhaustive list of all filters applied […]
-
Subscriptions Management Function Reference
If you are looking for a guide to creating and managing subscription products in a WooCommerce store, please refer to the Store Manager Guide instead. The WC_Subscriptions_Manager class is responsible for managing the subscription across its lifecycle. This involves updating subscription statuses when certain events occur, like order status changes, preparing renewal orders when a […]
-
Subscriptions Payment Gateway Integration Guide
If you are looking for a guide to creating and managing subscriptions in your store, refer to the Store Manager Guide. Adding subscription support to your existing payment gateway extension is a great way to attract new customers and provide a sought-after feature for your existing customers. Subscriptions provides a comprehensive API and takes care […]
-
Subscriptions PayPal IPN Issues
WooCommerce Subscriptions uses PayPal’s IPN (Instant Payment Notification) system to keep data in sync with PayPal. When PayPal processes a payment or other subscription event, like a cancellation, it sends an IPN to the site. Subscriptions processes this IPN and performs the appropriate actions concerning the related orders and subscriptions. For example, when a recurring […]
-
Subscriptions v2.0 Architectural Changes
WooCommerce Subscriptions v2.0 introduced a major architectural change relating to how subscription data is stored and accessed. This was the most important change in Subscriptions’ code base since it was first developed more than 3 years prior to the version 2.0 release. It was also the first time a major breaking change to Subscriptions’ code […]
-
Subscriptions v2.0: Database Upgrade Process for v1.5 to v2.0
To migrate stores using Subscriptions v1.5 to the new architecture of v2.0, Subscriptions uses a database upgrade script. This script will create a new ‘shop_subscription’ post for each subscription on the site and then migrate all meta data relating to a subscription from the original order used to purchase the subscription to the new ‘shop_subscription’ […]