Created
July 24, 2022 14:38
-
-
Save wp-user-manager/e1d2452fda1e17af1c055b7e2e7744b6 to your computer and use it in GitHub Desktop.
WP User Manager - Don't send welcome emails to users created via wp-admin
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
add_filter( 'wpum_send_registration_user_email', function ( $check ) { | |
if ( isset( $_POST['action'] ) && 'createuser' === $_POST['action'] ) { | |
return false; | |
} | |
return $check; | |
} ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Save this file to your /wp-content/mu-plugins/ directory (you might need to create the mu-plugins directory).