allow only lowercase user registrations

The filter validate_username sends and expects a boolean value, not a string. Hook into sanitize_user and use mb_strtolower(). Sample code, not tested: add_filter( ‘sanitize_user’, ‘wpse_83689_lower_case_user_name’ ); function wpse_83689_lower_case_user_name( $name ) { // might be turned off if ( function_exists( ‘mb_strtolower’ ) ) return mb_strtolower( $name ); return strtolower( $name ); }

How to receive notifications when a new user registers

This is an easy way to get to get emails upon user registration – just needs to be added to your function.php file. function registration_email_alert($user_id) { $message = strip_tags($_POST[‘user_login’]). ‘ – ‘ . strip_tags($_POST[‘user_email’]) . ‘ Has Registered To Your Website’; wp_mail( ‘[email protected]’, ‘New User Has Registered’, $message ); } add_action(‘user_register’, ‘registration_email_alert’); I’m sure there’s … Read more

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