Any way to have wp_mail not send a “registration denied” email?

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?

Related posts

Leave a Reply

1 comment

  1. 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:

    remove_action( 'new_user_approve_deny_user', array( pw_new_user_approve(), 'deny_user' ) );
    

    Read more about the remove_action() function in the Codex.