Forums

[Plugin: WP User Registration] Tips: username must be in a-z0-9_.- (3 posts)

  1. surrealphoto
    Member
    Posted 2 years ago #

    Is there anyway to get rid of the annoying red box thing at the top? It says: Tips: username must be in a-z0-9_.-

    That's pretty confusing to me... let alone my users/customers. Every time I try to edit that out... I get an error...

    Thanks,
    Jeremy

    http://wordpress.org/extend/plugins/wordpress-password-register/

  2. surrealphoto
    Member
    Posted 2 years ago #

    Anyone? Does anyone even check these things?

  3. Soptep
    Member
    Posted 2 years ago #

    Hello, i was also looking to remove this message and couldn't find any solution around. Your post also appeared when i was looking for a solution.

    You will find this message on line 307 of the file wp-user-registration.php which is located at the plugins/wordpress-password-register folder.

    So you can just delete it or with an if condition only show it in a webpage you want. For example to only show it when register you can do something like this:

    function wp_login_message($message){
    		if (isset ($_SERVER['QUERY_STRING']) && $_SERVER['QUERY_STRING'] == "action=register")
    			$message .= '<div id="login_error">'. __('<strong>Tips</strong>: username must be in a-z0-9_.-','wp-user-registration') .'</div>';
    
    		return $message;
    	}

Topic Closed

This topic has been closed to new replies.

About this Topic