Skip to content

Instantly share code, notes, and snippets.

@thenbrent
Last active December 2, 2016 22:24
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 2 You must be signed in to fork a gist
  • Save thenbrent/ac54fac6978700b8f20e to your computer and use it in GitHub Desktop.
Save thenbrent/ac54fac6978700b8f20e to your computer and use it in GitHub Desktop.
<?php
/**
* Plugin Name: WooCommerce Subscriptions Remove Deprecation Handlers
* Plugin URI: https://support.woothemes.com/hc/en-us/articles/205214466
* Description: Do not load backward compatibility support in Subscriptions 2.0.
* Author: Prospress Inc.
* Version: 1.0
* Author URI: http://prospress.com
*/
function wcs_remove_deprecation_handlers() {
add_filter( 'woocommerce_subscriptions_load_deprecation_handlers', '__return_false' );
}
add_action( 'plugins_loaded', 'wcs_remove_deprecation_handlers', 0 );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment