The tag has no usage guidance.

learn more… | top users | synonyms

6
votes
0answers
56 views

Problem with Hebrew characters in username

I wrote a plugin to enable hebrew characters in usernames. This is the full code: add_filter ('sanitize_user', 'hu_sanitize_user', 10, 3); //Overrides the Wordpress sanitize_user filter to allow ...
1
vote
1answer
51 views

How to set a minimum length for username in Woocommerce? [closed]

I need to set a minimum lenght for username in a website that use WooCommerce. In a "standard" WordPress installation (without WooCommerce, I mean) I could use a snippet like this one: function ...
0
votes
2answers
45 views

How to change the User name and Password of admin account

By default i have selected the Username of admin account as "admin" , of the Wordpress CMS while installing wordpress first time. Now i want to deploy the webpage : considering the security ...
1
vote
0answers
18 views

Unique User for all visitor, but possibility to comment with unique name

Maybe a little bit more information: The website is a local blog for a company. They generate only one user and password each 3 month. This username is used for all people who work in this company. ...
0
votes
0answers
11 views

Not able to create a user with username proelitesunny

This is strange but I've tried a lot but I am not able to create a user with username proelitesunny. It shows page not found error. I also tried fresh installation of wordpress with admin username ...
0
votes
1answer
37 views

Set “Display Name Publicly As..” to be usernames by default

My Wordpress iste currently displays users' identifying information by their FIRSTNAME + LASTNAME. The vast majority prefer to be known by their usernames. I've instructed how to change their "...
0
votes
1answer
44 views

Custom User Registration script only allowing usernames with 16 characters

I'm noticing a weird issue on a custom User Registration page I'm using in WordPress. It seems as if WordPress will only accept usernames with 16 characters (NO MORE, NO LESS). The custom ...
0
votes
1answer
86 views

Change user's display name programmatically

I'd like to change a user's display name using this code snippet in my theme's functions.php file: $user_id = 672; $display_name= 'Les Yeux'; $user_id = wp_update_user( array( 'ID' => $user_id, '...
4
votes
1answer
63 views

Hebrew username

I need to add username in hebrew, I have added this, add_filter( 'sanitize_user', 'sanitize_user_with_hebrew', 10, 3 ); function sanitize_user_with_hebrew( $username, $raw_username, $strict ) { $...
0
votes
3answers
55 views

I want to change my user name

Is it possible to change my user name? It was only after choosing it that I realised I had misspelled it.
0
votes
2answers
207 views

User login without username, only password

Is it possible to modify WP so that only password is needed to login? We have members who have unique membership number and we would like them to be able to log in using only the membership number. ...
0
votes
1answer
735 views

Displaying Logged-In User Name in Wordpress Menu

I'm using Wordpress with UserPro, and want my menu to display the logged-in user's first name, linked to the user profile page. The problem is that in my menu structure, the "Profile" menu option is ...
0
votes
1answer
22 views

forgot password

I requested a new password at /wp/wp-admin, I enter my user name and it said a new password has been sent, though hours later nothing is on my e-mail. How else may I log into WP with new user name ...
0
votes
1answer
44 views

Username has been exposed

I am running a WordPress installation, I am using the theme created by my own. I haven't displayed any author related information in the theme. But I am getting server logs with domain/author/author-...
0
votes
1answer
62 views

How can hackers access WP usernames? [duplicate]

Recently I've had brute force attack attempts on some of my WordPress sites and the attackers are using actual usernames other than the default admin (which was removed). How is it possible for them ...
0
votes
1answer
339 views

Private page protected with username and password

We are building a WordPress site where one of the pages needs to be accessed via username and password. I know that I can create a "Private" page, where the user can enter a password to view. However,...
0
votes
2answers
115 views

php if username is role

I know you can easily display custom content if a certain logged in user is a certain role using <?php if ( current_user_can('contributor') ) : ?> media files loop <?php endif; ?> ...
0
votes
1answer
98 views

php return username of currently viewed author profile

I'm at a loss. I have profiles developed for my wordpress website, and I want to display content on my page-profile.php that is specific per user profile. I've looked all around the codex and only ...
0
votes
2answers
25 views

Is it possible to rebuild the website while not accesseing the original database?

Suppose I have forgotten the wordpress admin username and password, is it possible to rebuild the website (create a new database and delete/replace the original wordpress folder) while not accessing ...
0
votes
2answers
247 views

Add Username to URL for redirect

I need a little help with what I believe would be PHP. http://www.domain.com/author/username/achievements/ Depending on the username of the person logged in, I would like to create a URL that ...
0
votes
1answer
21 views

What Wordpress file is saving new users to database

I need to know, what Wordpress php file is saving new users to database. I can't find it, but I need to modify new users usernames before it's added to DB. Thank you!
1
vote
2answers
849 views

How to override WordPress registration and insert an auto-generated username?

I need to auto-generate usernames upon WordPress registration. I have a custom registration form set up and would like to create the username in functions.php. Can someone tell me why this isn't ...
0
votes
0answers
136 views

Disable author admin just use name.

I have a WPMU installation where I am super admin and im developing my blog there for my team. When I click on my name on the post, to show all my post its redirecting me to /blog/author/admin instead ...
1
vote
1answer
130 views

php function to display commenter username or login

I want to display the commenters username or login name in a comment template. I know there is a function comment_author_link(), but this displays the "display name publicly as" name and not ...
0
votes
1answer
48 views

Username from e-mail

Which files do I have to edit to get a grip on $_POST data sent by the registration form? I want to explode $_POST['email'] and build an username from that. I simply want to allow people to register ...
0
votes
1answer
73 views

Default Display Name As Username

I don't know why it's so hard to find a solution for this but nothing seems to work when i finally find an answer.. I want to simply make the default display name as the users login/username.. I ...
2
votes
2answers
272 views

Why can't I update username through Wordpress API?

I'm just wondering about usernames... Why isn't is possible to change this through Wordpress API? (I understand why a user in the admin dashboard can't change username(s) but that isn't really same ...
1
vote
0answers
300 views

Renaming admin user on multisite install by MySQL

As part of a general tightening of security, I want to change the name of the admin user on my multisite install to something less commonly used. This user is admin on all five sites in the network ...
0
votes
1answer
1k views

How to translate “ERROR: Invalid username. Lost your password?”

I want to translate the above message which appears on invalid username. I know the answer is very similar to the one proposed here by I cannot find the exact handler. Thank you.
0
votes
2answers
560 views

How to let the users edit their user names?

Is there a way to let the users edit their usernames? Today, I googled for such a code for a while and had no luck finding a solution except a few plugins. I didn't find any tutorial for doing so. ...
-3
votes
2answers
378 views

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

How do I limit the username field upon registration to A-Z and 0-9 for single site? So no spaces, hyphens, underscores, dots etc.
6
votes
1answer
415 views

Filter username field on registration for profanity and unwanted words

How do I add a filter to the username field to stop new users from registering using unwanted words such as administrator or general profanity? Ideally, if I could add a large list of words that are ...
2
votes
1answer
249 views

Change default ordering of display name

WordPress dashboard offers user the opportunity to choose whether their name is output as Firstname Lastname or several other options with Firstname Lastname order the default. I would like that ...
0
votes
1answer
134 views

Username was changed to “admin”

I suspect a hacking incident in my wordpress site. My username was changed to "admin". How to revert back my username safely? Thanks
0
votes
1answer
104 views

Fetch data from a WP page with same name as current username

Ok, so this sounds a little complex, but in theory should be easy. What I'm trying to achieve: ACF data is pulled from a WP page which has the same name as the current logged in user. Basically I ...
0
votes
1answer
385 views

use of nickname and nicename?

nicename is used for author slug in url. But can anyone tell what is the especial use/application of 'nickname' user meta field in wordpress ? or it is just another extra field to show nickname.
0
votes
1answer
23 views

I want to use my username to post blog posts, is this advisable?

I only intend to post blog posts with a one word name (the name of the website), and so I am wandering can I just use my username?? Is this common amongst admin-bloggers to post using their username ...
0
votes
0answers
106 views

Passing user first and last names from external db to WordPress user first and last names using session variables?

This may be a little convoluted, but here it goes. I don't let users register on WordPress to access my member site. I have an outside registration/login system set up and want to continue using ...
0
votes
1answer
303 views

White spaces in username give 404 on author page

As the title says. When users register with white spaces in their usernames, if you try to go to their author page, you get a 404 error. Is there a way to fix the redirect? or should I add a filter ...
3
votes
2answers
1k views

Menu Link Redirect Based on Username or User ID

I am building a client portal where my clients can log in and see all their pending projects, completed projects and create new projects. Though I'm stuck at the start. The dropdown menu is called "...
1
vote
1answer
37 views

Use mulitple usernames?

Can I configure wordpress to use two database usernames, one to read (which has read-only permissions in the database) and one to post (who is hidden in a protected wp-admin directory) for security ...
-2
votes
3answers
314 views

How can I create a virtual user on WordPress

I want to create a virtual user on WordPress, I mean the username and password will not exist in the database or in the Dashboard but if I login, the username and password must be recognized and the ...
2
votes
1answer
2k views

Wordpress User Name Limitations

I need to know what the wp specifications for the usernames are. Like allowed minimum and maximum length, are special characters like ü,ö,ä,ß accepted,..? Unfortunately I couldn't find any insight on ...
0
votes
1answer
379 views

How to allow wordpress to create username with symbols like +

I want to allow users to create username with + symbol. but wordpess removing the symbol by the register validation process. If I gave username as abcd+123, the user registered with username as ...
1
vote
1answer
112 views

Is it possible to incorporate username in a login redirect?

I'm using WP to work as the CMS for a website which will be provided to users of a number of different products. I've successfully created a function which will redirect users based on their role: ...
0
votes
2answers
210 views

allow only lowercase user registrations

I'm trying to get allow only lowercase usernames are valid usernames in my wordpress blog. I managed to write a function but it does not seem to work. add_filter('validate_username' , 'simple_user', ...
0
votes
1answer
126 views

Invalidate username if it contains @ symbol

I would like to let the user login either using username or email. The only way to find the email is by detecting @ symbol using strpos. However WordPress allow @ symbol in username too. Can ...
0
votes
3answers
2k views

How do I display user name, role and site name using HTML tags inside a dashboard notification?

Here's what I have so far as my notification, but I can't find any information around how to input the user's name, role and site name within those sections. You can see where they are supposed to go. ...
2
votes
2answers
3k views

Update user_login to change username

I'm trying to update user_login in the wp_users table, to force update a user's username to their email address on submission of a front end edit profile form. I know WordPress forbids this via the ...
1
vote
1answer
333 views

How can i change the name order in the admin?

When i go to wp-admin/users.php, in the second column i can see the users full name, however, its not in the right order. In Hungary, we use a different name order: http://en.wikipedia.org/wiki/...