Skip to content

WooCommerce

Recipe for managing official WooCommerce.com extensions and subscriptions.

Configuration

Instructions

A detailed placeholder explains how to find the access token and access token secret:

  1. Read the woocommerce_helper_data option from your WordPress database
  2. Use WP CLI: wp option get woocommerce_helper_data
  3. If not present, connect your site via WP Admin > WooCommerce > Extensions

Slug

  • Label: Slug
  • Required: Yes
  • Type: Text

Access Token

  • Required: Yes
  • Type: Secret

Access Token Secret

  • Required: Yes
  • Type: Secret

Features

How to Obtain License Information

The access token and secret are stored in your WordPress database after connecting your site to WooCommerce.com:

  1. In your WordPress admin, go to WooCommerce > Extensions
  2. Click "Connect" to link your site to WooCommerce.com
  3. Run this WP CLI command to get the credentials:
    bash
    wp option get woocommerce_helper_data
  4. Extract the access_token and access_token_secret from the output

Notes

  • Uses the WooCommerce.com API
  • Requires HMAC-SHA256 signature authentication
  • Fetches subscriptions from https://woocommerce.com/wp-json/helper/1.0/subscriptions
  • Update checks via https://woocommerce.com/wp-json/helper/1.0/update-check
  • Validates that you have an active subscription for the product
  • Handles authentication errors: not_found, invalid_signature
  • Implements retry logic for API responses (up to 5 iterations with 3-second delays)
  • Includes rate limit detection
  • Uses request caching to prevent excessive API calls
  • Maps products by zip_slug to match subscriptions