Skip to content

Instantly share code, notes, and snippets.

@webdev1001
Forked from thenbrent/wcs-do-not-update-role.php
Last active August 29, 2015 14:08
Show Gist options
  • Save webdev1001/49e22a0b77332188b469 to your computer and use it in GitHub Desktop.
Save webdev1001/49e22a0b77332188b469 to your computer and use it in GitHub Desktop.
<?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