Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
This will set Subscriptions to Manual renewal and disable Subscription emails.
<?php
/**
* Plugin Name: WCS Enable Staging mode
* Description: This will set Subscriptions to Manual renewal and disable Subscription emails.
* Version: 1.0
* Author: AashikP
* Author URI: https://aashikp.com
* Text Domain: wcs-enable-staging-mode
* Requires at least: 5.0
* Requires PHP: 7.4
* WC requires at least: 5.0
* WC tested up to: 5.9
*
*/
defined( 'ABSPATH' ) || exit;
add_filter( 'woocommerce_subscriptions_is_duplicate_site', '__return_true' );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment