Skip to content

Instantly share code, notes, and snippets.

@meetawahab
Last active June 26, 2020 10:37
Show Gist options
  • Save meetawahab/613717e35c637c40cb352a902cbb4969 to your computer and use it in GitHub Desktop.
Save meetawahab/613717e35c637c40cb352a902cbb4969 to your computer and use it in GitHub Desktop.
Turn off the new user email notification for user.
<?php
function ab610_wp_new_user_notification_email( $wp_new_user_notification ) {
$wp_new_user_notification['to'] = '';
return $wp_new_user_notification;
}
add_filter( 'wp_new_user_notification_email', 'ab610_wp_new_user_notification_email' );
// We can use `wp_new_user_notification_email_admin` filter for turn off the admin notification.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment