Created
November 10, 2021 03:24
-
-
Save AashikP/4c23ac1567138824cece10e5898cb551 to your computer and use it in GitHub Desktop.
This will set Subscriptions to Manual renewal and disable Subscription emails.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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