2021 Q4 Sale BFCM – Free Users Sitewide Banner

  1. Documentation
  2. Plugins
  3. WooCommerce
  4. Extensions
  5. WooCommerce Subscriptions
  6. Subscriptions Developer Docs

Subscriptions Developer Docs

Articles

  • Conditional Coupons for WooCommerce

    Offer the Most Relevant Discounts at the Perfect Time Customers love discounts, so don’t let them miss a great deal. To maximize conversions, present your best offers and coupons in a variety of formats to the shoppers on the cart page, just as they’re completing an order. Installation Download the .zip file from your WooCommerce […]

  • 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 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 […]

  • Complete Guide to Scheduled Events with Subscriptions

    Scheduled Events Overview Scheduled events are actions that happen at particular times. WP-Cron and Action Scheduler are systems that trigger and run events. Both of these systems run in the background. Action Scheduler excels at batch processing, storing the actions, error logging, and providing an interface for interacting with the system. WP-Cron WP-Cron is WordPress’s […]

  • Subscription Caches

    WooCommerce Subscriptions v2.3 introduced a persistent caching system to improve performance by avoiding slow database queries. Subscriptions’ persistent caching system uses a caching layer for: a subscription’s related orders all the subscriptions for a customer This system speeds up many functions on the Subscriptions extension, including the amount of time it takes to process a […]

  • Developer Guide to Cart and Recurring Cart Fees

    The following guide is written for developers who want to add fees to the WooCommerce cart and would like to learn about how these fees interact with WooCommerce Subscriptions. The guide explains how fees added to the cart act by default, and how they can be customized to be applied only to the initial order […]

  • Developer Guide to Failed Recurring Payment Retry System

    WooCommerce Subscriptions is a premium plugin, and version 2.1 introduced a new system to automatically retry a recurring payment that previously failed. This guide provides a technical overview of the Failed Recurring Payment Retry system and is intended for developers looking to customize or otherwise interact with the retry system. We recommend reading the Store Owner Guide […]

  • 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 […]

  • Developer Guide to Multiple Subscriptions

    When using WooCommerce Subscriptions, multiple subscription products can be purchased together in the one transaction. This guide provides an overview of the technical implementation of multiple subscription handling. For a more comprehensive overview of the system, including the decisions involved in choosing this implementation, refer to the Store Manager Guide to Multiple Subscriptions. If you […]

  • Subscriptions v2.0: Payment Gateway Upgrade Guide

    Although backward compatibility has been preserved for payment gateway APIs, Subscriptions v2.0 introduces a number of changes that relate to payment related meta data and how recurring payments are handled. There are a number of updates you can make to your gateway extension’s code to support these changes and avoid deprecated notices on your customer’s […]

  • 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’ […]

  • Admin Change Payment Method Integration Guide

    This article provides developer documentation for adding support to a payment gateway extension for Subscription v2.0’s new Change Payment Method section of the Edit Subscription administration screen. If you are a developer of a payment gateway and have not yet provided support for processing subscriptions, please read the Subscriptions Payment Gateway Integration Guide. Background A […]

  • 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 […]

  • How Does Subscriptions Handle Staging Sites and Migrations?

    WooCommerce Subscriptions & Subscriptions by WooCommerce Payments can handle staging sites and migrations. Many hosts provide an easy way to create a clone of your website for testing changes. This is called a staging site. To prevent duplicate payments from a clone of your site, Subscriptions and Subscriptions by WooCommerce Payments will disable automatic payments […]

  • Introduction to Subscriptions Developer Documentation

    This documentation is written for WooCommerce developers who want to extend or integrate with the WooCommerce Subscriptions plugin. To follow this documentation, you need an advanced understanding of PHP and WordPress development. If you are looking for a guide to creating and managing subscription products in a WooCommerce store, please refer to the Store Manager […]

  • 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 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. […]

  • Subscription Function & Property 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 guide introduces some of the functions available for working with subscription data. It is not intended to provide tutorials on how to achieve certain tasks with a subscription, or […]

  • 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 […]

  • Subscription Order & Cart 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. This document provides a reference for a few utility functions in the WooCommerce Subscriptions code base relating to orders and the cart. It is neither exhaustive nor instructive of when […]

  • 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 […]

WooCommerce - the most customizable eCommerce platform for building your online business.

  • 30 day money back guarantee
  • Support teams across the world
  • Safe & Secure online payment