User role can’t be set
User role can’t be set
User role can’t be set
Add custom input field in new user page
WCFM Custom form
Here is the right answer : Redirect 301 /register /login-register It works without quotation marks. And no need to use absolute path (the entire address), except if the redirection goes to another domain. If this is your case, do this: Redirect 301 /register https://example.com/login-register Also, I didn’t redirect /wp-login as it caused some issues (inability … Read more
Create Unique and Customized User ID for Website Members in WordPress
Don’t include jquery from any other source, it will create conflict. Bcoz jQuery is pre bundled in wordpress by default. For your question, add an id or class to the input element then add the datepicker based on the class. For example <input type=”text” class=”da_test” value=”” > <script type=”text/javascript”> $(window).load(function() { $(‘.da_test’).glDatePicker(); }); </script> This … Read more
You can use the user_register hook and then mail all your subscribers. Something like: add_action(‘user_register’,’notify_new_member’); function notify_new_member(){ global $wpdb; $usersarray = $wpdb->get_results(“SELECT user_email FROM $wpdb->users;”); $users = implode(“,”, $usersarray); mail($users, “New Member”, ‘A new member has just joined.’); }
Using the regex posted by Moaz (and adding capitals), we will need to hook into the registration_errors filter: // Restrict username registration to alphanumerics add_filter(‘registration_errors’, ‘limit_username_alphanumerics’, 10, 3); function limit_username_alphanumerics ($errors, $name) { if ( ! preg_match(‘/^[A-Za-z0-9]{3,16}$/’, $name) ){ $errors->add( ‘user_name’, __(‘<strong>ERROR</strong>: Username can only contain alphanumerics (A-Z 0-9)’,’CCooper’) ); } return $errors; }
You can assign roles to wordpress users (Contributor, Author, etc) and I’m pretty sure wordpress sends a “confirm user” email. If you want a whole different backend or user system that would be integrated in the theme, that’s no longer related to wordpress.
In the admin interface under Settings > General there is a field named E-mail Address. Unless you have a plugin managing your user registration separately, this should be the default email address for registration confirmations.