I’m using the approve new userplugin and the FAQs say that emails are generated through the wp_mail() function. Is there a way to not send a denied email to users when not approving their registration?
Leave a Reply
You must be logged in to post a comment.
If you view the plugin source, you’ll notice that the
deny_user()
email is sent during the'new_user_approve_deny_user'
hook. Therefore, you can use the following in your functions.php to remove the action:Read more about the
remove_action()
function in the Codex.