Created
January 13, 2020 07:15
-
-
Save plugin-republic/a1ad767b54933140d900c6fbc577d439 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 | |
/** | |
* Assign roles when status is set to completed | |
*/ | |
add_action( 'woocommerce_order_status_completed', 'wcmo_assign_roles_after_purchase', 10 ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment