This change splits up the function approve_user() into two separate functions:
approve_user() - which sends the approval email
update_approve_status() - which will update the user's status in WP to "Approved"
This way, if one wants to disable the standard approval email and use something different (for example a custom Woo template), all that has to be done is unhook approve_user.
This change splits up the function approve_user() into two separate functions:
This way, if one wants to disable the standard approval email and use something different (for example a custom Woo template), all that has to be done is unhook approve_user.