Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save wp-user-manager/e1d2452fda1e17af1c055b7e2e7744b6 to your computer and use it in GitHub Desktop.
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
<?php
add_filter( 'wpum_send_registration_user_email', function ( $check ) {
if ( isset( $_POST['action'] ) && 'createuser' === $_POST['action'] ) {
return false;
}
return $check;
} );
@wp-user-manager
Copy link
Author

Save this file to your /wp-content/mu-plugins/ directory (you might need to create the mu-plugins directory).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment