WooCommerce Subscriptions Upstage
Disable Staging Mode for specific subscriptions, as defined in a WCS_UPSTAGED_SUBSCRIPTION_IDS constant.
by Prospress Inc. · github.com/woocommerce/woocommerce-subscriptions-upstage · website
★ 14stars
1forks
Install
No release zip yet. The repository archive installs, but the folder name will carry the branch suffix and updates will not flow:
wp plugin install https://github.com/woocommerce/woocommerce-subscriptions-upstage/archive/refs/heads/master.zipDeclares an update source (Prospress/woocommerce-subscriptions-upstage), so updates arrive through the plugin's own updater.
From the readme
IMPORTANT: This code is made available in the hope that it will be useful, but without any warranty. See the GNU General Public License included with the code for more details. Automattic or WooCommerce support services are also not available to assist with the use of this code.
WooCommerce Subscriptions Upstage
Using WooCommerce Subscriptions? Need to test automatic payments on a staging site?
By default, when WooCommerce Subscriptions detects a change in a site's URL, it switches to Staging Mode. In Staging Mode, all subscriptions are forced to use manual renewals. This prevents accidental, duplicate renewal payments being processed by staging sites.
On occasion, there is a need to process automatic payments on staging sites, generally for testing.
This plugin can be used to trigger automatic payments for specific subscriptions when Subscriptions is in Staging Mode.
Usage
1. Download the latest version of the plugin
1. Install & activate the plugin
1. Define a WCSUPSTAGEDSUBSCRIPTIONIDS constant
1. Set its value to a JSON encoded array of subscription IDs (int's) - it needs to be JSON encoded to avoid PHP Warning: Constants may only evaluate to scalar values errors
Automa