wpexpertsio / new-user-approve

WordPress plugin that allows an admin to approve new users
http://wordpress.org/plugins/new-user-approve/
GNU General Public License v2.0
60 stars 45 forks source link

Split up approval status update & email #67

Closed hinterfold closed 6 years ago

hinterfold commented 6 years ago

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.