Stack Exchange Network

Stack Exchange network consists of 174 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
26 views

Display avatar and username in html

Previously I used the following code in the functions of my theme. In the main menu I created an item called #profile_name# and the username of the connected member was displayed. add_shortcode('...
0
votes
0answers
12 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
9 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
8 views

Remove custom number from AMP pages

I use the Automattic plugin to use AMP on my site. At present, to make my videos responsive, I include YouTube videos around custom practice. So YouTube video on my site looks like this: <div ...
0
votes
0answers
15 views

New User name notification

Im triying to personalize the Email notification for admin when new user. But I cant get the name. Im trying with $current_user->display_name and $current_user->user_login but no result. ...
0
votes
0answers
19 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
13 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
89 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
13 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
53 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
103 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
45 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
20 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
116 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
1k 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
33 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
55 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 ...
1
vote
3answers
391 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
67 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
0answers
34 views

Download link shows 404 page

For download the file, user have to fill the form and admin get the user email. This is my requirement. For this, I'm using email before download plugin. I save the short codes in popup. Now the issue ...
0
votes
1answer
47 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
0answers
15 views

Redirecting User based on Nickname

I use my WP account to house hundreds of my clients. I'd like to add a link to the menu; however, each link I add would need to direct different clients to different places. Is there a way to do this? ...
0
votes
1answer
152 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
51 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
24 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
0answers
773 views

How do i allow special characters in username?

When i try to register in WordPress site and i try to give special character like Rêhaman or Rehamãn. it showing me error like ERROR: This username is invalid because it uses illegal characters. ...
0
votes
1answer
47 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
67 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
137 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
258 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
930 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
1k 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
139 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 ...
2
votes
2answers
5k 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
350 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
33 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
3k 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
601 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
3k 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
110 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
989 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
12k 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
34 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
433 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
1k 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
344 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; ?> ...