Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
<?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
You can’t perform that action at this time.