Skip to content

Instantly share code, notes, and snippets.

@AashikP
Created November 10, 2021 03:24
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save AashikP/4c23ac1567138824cece10e5898cb551 to your computer and use it in GitHub Desktop.
Save AashikP/4c23ac1567138824cece10e5898cb551 to your computer and use it in GitHub Desktop.
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