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.
Cancel a subscription when its parent order or last renewal order is fully refunded.
The subscription will be transitioned immediately to the cancelled status. It will not go via pending cancellation.
If the refund is not on the most recent order, the subscription will not be cancelled. For example, if a subscription has both a renewal order and a parent order, and only the parent order is refunded.
To install:
- Download the latest version of the plugin here
- Go to Plugins > Add New > Upload administration screen on your WordPress site
- Select the ZIP file you just downloaded
- Click Install Now
- Click Activate
To keep the plugin up-to-date, use the GitHub Updater.
If you find an problem or would like to request this plugin be extended, please open a new Issue.