Give to site admin the option to “skip confirmation email” when adding new user

Paste this in your functions.php file: function my_skip_confirmation_email() { if ( is_multisite() && current_user_can( ‘create_users’ ) ) { ?> <table class=”form-table”> <tr> <th scope=”row”><?php _e( ‘Skip Confirmation Email’ ); ?></th> <td> <input type=”checkbox” name=”noconfirmation” id=”noconfirmation” value=”1″ /> <label for=”noconfirmation”><?php _e( ‘Add the user without sending an email that requires their confirmation.’ ); ?></label> </td> </tr> … Read more

How can I be certain that a user has verified their email after registration?

I’ve tried a few different approaches for verifying the user’s email. For now, what I am doing is this: When a user first registers, set the user’s user_metadata ’email_not_verified’ to 1. add_action( ‘user_register’, ‘sc_user_email_not_verified’ ); function sc_user_email_not_verified( $user_id ) { update_user_meta( $user_id, ’email_not_verified’, 1 ); } Then, override the wp_new_user_notification function so that it adds … Read more

Mass registrations on my blog. Disable specific domain?

BTW you can try this one. I just put together something. It should block gmail.com domain. This function will check for email domain when someone tries to register on your website and throws an error if email domain is matched. function wpse_disable_email_domain( $errors, $sanitized_user_login, $user_email ) { list( $email_user, $email_domain ) = explode( ‘@’, $user_email … Read more