php - Any way to have wp_mail not send a “registration denied” email? -
i'm using approve new userplugin , faqs emails generated through wp_mail() function. there way not send denied email users when not approving registration?
if view plugin source, you'll notice deny_user()
email sent during 'new_user_approve_deny_user'
hook. therefore, can utilize next in functions.php remove action:
remove_action( 'new_user_approve_deny_user', array( pw_new_user_approve(), 'deny_user' ) );
read more remove_action()
function in codex.
php wordpress function
No comments:
Post a Comment