Created
June 25, 2020 05:43
-
-
Save plugin-republic/29a4520c3a17d7d124336d866b6f4842 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 | |
/** | |
* Remove existing user roles if a user is assigned a new role when purchasing a product | |
*/ | |
add_filter( 'wcmo_remove_existing_roles', '__return_true' ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment