There is a function that specifically sends the email to the denied user. Adding this code to your site will cause an email to not be sent to any denied users.

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

The Options Addon provides a user interface to not send emails to denied users.

Leave a Reply

  • (will not be published)