Forked from thenbrent/wcs-do-not-update-role.php
Last active
August 29, 2015 14:08
-
-
Save webdev1001/49e22a0b77332188b469 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: Stop WooCommerce Subscriptions Changing a User's Role | |
* Plugin URI: | |
* Description: | |
* Author: Brent Shepherd | |
* Author URI: | |
* Version: 1.0 | |
*/ | |
add_filter( 'woocommerce_subscriptions_update_users_role', '__return_false', 100 ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment