Limit username to specific characters (A-Z and 0-9)

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; }

Login to comment: not just user and email

You can try to add this kind of functionality, but it is unlikely to always work. You can not force people to identify their real life ID on the internet. Even geographical detection based on IP address is problematic and easy to avoid using proxies. If you want people to willingly identify themselves on your … Read more

Verify user is Eventbrite attendee when creating new WordPress account

This is a very broad question. As @andrew pointed out, you need to work with the API at http://developer.eventbrite.com/ to parse member lists with the API during the registration process in WordPress. But, eventbrite says that “Currently there is no way to search for a specific attendee with event_list_attendees.” https://stackoverflow.com/questions/15366606/verifying-a-single-attendee-with-email

enqueue style google fonts in functions.php in array?

Each time you use wp_enqueue_style, they each need their own unique ID. So ‘google-fonts’ isn’t going to work with: wp_enqueue_style( ‘google-fonts’, ‘http://fonts.googleapis.com/css?family=‘. $enque_font, false, ”, ‘all’ ); And you have two variables set up for the array? $font_link = $style_font_standard = array( I wrote it as one variable and in the array, they have pairs, … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)