Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [username]

The tag has no usage guidance.

0
votes
0answers
36 views

Allowing Non-Latin Characters In WordPress Registration

There exist a plugin for wordpress to enable usernames containing special characters (Russian, Cyrillic, Arabic …). Unfornetly this plugin didn't work for me. I have even a look at this solution but ...
1
vote
1answer
14 views

Change username before login

How to change username before submitting in login form ? I have used mobile number as username when a user registers in site. also I have removed 0 from the beginning of the mobile number. Now in ...
0
votes
1answer
172 views

How to auto-generate random numbers in username?

I have a public-viewed community site. I am able to insert First & Last Name fields in WooCommerce Registration form, and auto-generate username based on the combination of First+Last Name. But ...
0
votes
2answers
37 views

How to show my wordpress admin username & password?

when i created my worpress website i have given admin log in user name & password.But i forgot both.Now,how to find my wordpress admin log in username & password? from file or database .What ...
0
votes
0answers
19 views

How to assign a UserName value at creation

I want to allow users to register on my site. However, I want to assign the UserName value so that it is in a particular format and so that the user cannot change it. The format will incorporate the ...
0
votes
0answers
57 views

Add Prefix to Auto Generated Username

Is it possible to add a prefix to the auto generated username in WooComerce at checkout? Thank you
0
votes
1answer
12 views

Author name length character limit?

In comments, I want to limit author names. For example, the author's name should be no more than 10 characters. I'm looking for a way to do this. Thank you very much in advance.
0
votes
0answers
32 views

Sequential username generation with prefix number letter

I have a code which is working fine in my functions.php It works like 000001 then 000002 , 000003 etc But i wanted it like 5077A1 then 5077A2 5077A3 etc is it possible to add 5077A prefix in the ...
0
votes
0answers
14 views

Wordpress username sequence autogeneration

I have a wordpress website and i know that the username are created by useres or generated by emails directly in wooocommerce I wanted to know if it can be generated sequencely Like ajkl11 then the ...
3
votes
2answers
199 views

How can i force Display names to be the same as Usernames?

i need help. My users register to the website. They type their username user_login (see chello) but the Display name (see chello04) is not the same. It has a random two digits at the end. Is there a ...
0
votes
1answer
17 views

Reset admin and password

I had someone create my wordpress website. I cannot contact them and they have their email linked to the account. I am not sure of the username they set the account as. Do I need to start the website ...
0
votes
0answers
144 views

Allow only numbers in username

I'm planning to take 10 numbers(imagine it as a phone number) in the username field on my website when a user signup. How can I do that? I don't want to solve this with any plugin because I am already ...
0
votes
1answer
357 views

How to display Nickname on Wordpress in a php page?

I would like to display a nickname instead of username/display name on top of my website. I want to insert php codes which can display that Nickname in a php page. I have try these codes below, but ...
0
votes
1answer
54 views

Redirect user to specific link after login

I am new to wordpress so I will surely need more help than others to understand your answers. So, the question is: I have this website with a login page on home. Let's supose you are a member. If you ...
0
votes
0answers
22 views

How to gets users EMAIL by their USERNAME

If I have a users username, is it possible to take that and echo their email address instead? I have a field in Gravity Forms that has the assigned user to that job. I have added some code that echos ...
2
votes
1answer
209 views

auto assign sequence base username while registration

i am trying to get a new user an auto assigned sequence based username(non editable by user) while registration. so it will be starting from 0000000001 and so on, i have tried certain codes but my ...
1
vote
1answer
2k views

Username field is not shown in Woocommerce's registration contact form

I'm working on a Woocommerce website and I just came across this problem: when I go to Account page and I'm asked to create a new account, in the form there isn't the "Username" field. There are ...
1
vote
0answers
34 views

Restrict certain character combinations in username during registration

I am trying to restrict a certain combination of characters in a user name while they register. I have restricted user names to numeric characters only, but now I am not getting a way out to restrict ...
0
votes
1answer
68 views

I have restricted the username to numerical format but not able to integrate the same with PeepSo plugin

on my website i am using PeepSo Plugin and the restriction i put on wordpress signup page for username is not working on PeepSo Plugin. my site have two registration page one is the default wordpress ...
2
votes
3answers
612 views

Register email as username

I am using Wordpress 4.9.4 in a Wordpress Multisite, and I need to allow users to register using their email address as username. Looking at the code I found that what prevents me from accomplish that ...
0
votes
1answer
82 views

add the user name to menu when user is logged in [closed]

i have this code but its not working it throws syntax error, unexpected '}' error function my_custom_menu_item($items, $args) { if(is_user_logged_in() && $args->theme_location == '...
0
votes
1answer
49 views

Wordpress not logged in locally with correct username and password

I'm unable to logged in wordpress in locally with correct username and password. When I enter the username and password and click the login button, it displays same log in page with empty password ...
0
votes
1answer
231 views

How can I allow Arabic usernames in WordPress

I want to let users put there username in Arabic when they register a new account, I tried a lot of methods put problem still unsolved
0
votes
1answer
95 views

How can I apply custom sanitization to new usernames?

I have a WooCommerce module creating Wordpress usernames on my behalf. I want to make sure those usernames are sanitized according to my rules, which are stricter than the Wordpress requirements. How ...
0
votes
1answer
64 views

How to change a username?

How do I change a username? My username is showing up in search engines as an author but it's a product and services based site (using only pages) for a client. If I can't remove the author pages I ...
0
votes
1answer
55 views

How to set an array of current usernames

I am trying to get this code working so I can list a set of usernames that are not allowed to see updates in the Wordpress admin panel. Right now it only works with a single username. Is there a way ...
1
vote
1answer
82 views

How to retrieve lost username/ email log- in ?

I have couple of blogs hosted by wordpress.com (e.g. myspecialcorner.wordpress.com), and i have not been able to remember the username email log- n used for this wordpress. For your advise on how ...
1
vote
0answers
242 views

How can I display nickname instead username in links

This question is for Security. I found this code here: add_filter( 'request', 'wpse5742_request' ); function wpse5742_request( $query_vars ) { if ( array_key_exists( 'author_name', $query_vars ...
2
votes
0answers
292 views

Change Username?

A while back I was able to change the user-name in the wp_users table without problem. I noticed today that is not the case, or at least not with the super-admin user role. How can I adjust the user-...
0
votes
1answer
1k views

Cannot login with correct username and password anymore

I can't log in with my correct username and password. I get the message: ERROR: The password you entered for the username is incorrect. I have tried all the tips for fixing this problem I have ...
1
vote
2answers
2k views

How do I display the commentor's first name and last name in the comments?

How do I display the commentor's first name and last name in the comments?... rather than their username as currently shows.
0
votes
3answers
151 views

track all external links on blog via username

I’ve been searching for a plugin that can track all external links clicked on a blog. Unfortunately the ones that I’ve found are intended to track total clicks per link rather than tracking which user ...
3
votes
3answers
6k views

Email as Username in registration

many users would to allow the registration in a wp site without an username, just only with an email. This is a core problem, so the solution (a trick) is to replace username with email. If wp ...
6
votes
1answer
399 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 ...
2
votes
1answer
1k 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
72 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
35 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. ...
1
vote
1answer
4k 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
729 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
4k 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
116 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
73 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
3answers
1k 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. ...
4
votes
3answers
13k 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
36 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
50 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
470 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 ...
1
vote
1answer
2k 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
353 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
469 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 ...