Last active
December 2, 2016 22:24
-
-
Save thenbrent/ac54fac6978700b8f20e to your computer and use it in GitHub Desktop.
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: 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