Questions tagged [username]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
1 answer
25 views

How to add @ symbol to user url

I want to add the @ symbol to the beginning of the username in the url i find this code to remove author from url But I do not know how I should change to add @ to the beginning of the usernames and ...
user avatar
  • 1
0 votes
0 answers
37 views

Redirect users with "." (dot) in their username and replace with "-" (dash) to correct profile

Im having problem with usernames that have '.' (dot) in their username and throwing 404 when try to access their profile page in front end. Can we replace this '.' (dot) with '-' (dash) because ...
user avatar
  • 1
0 votes
0 answers
86 views

What are the best practices to achieve cross-domain interoperability and transparency in aggregate data through a uniform, hashed user naming schema?

The following plugin was just presented at the special session on data provenance to amend NSA's hard problems during the Hot Topics on Science of Security (HoTSoS) symposium. I'm looking for peer ...
user avatar
0 votes
2 answers
32 views

Lock out all WordPress Administrators except two specific users

I used the snippet below to lock out all administrators and editors except myself if ( is_user_logged_in() ){ $current_user = wp_get_current_user() ; if ( in_array( 'administrator', (array) $...
user avatar
1 vote
1 answer
650 views

How do I display "Hello username" if logged-in on the homepage

I am trying to show the name of the currently logged-in user in a small text like 'Hello, username!'. I tried to do this, but it doesn't work: <p class="vam"> <?php if(...
user avatar
0 votes
1 answer
37 views

Display a custom name when the user has no name settle in his account

I'm creating a code that shows the First Name for logged in users, using a shortcode, but I noticed that if the user has no name settle, it will display a blank space. How can I set a custom name to ...
user avatar
  • 135
1 vote
2 answers
5k views

Display first name of logged in user?

I'm trying to create shortcodes that will display both avatar and logged in user first name in a text widget. I have managed to create something that displays the avatar, but not the username. My code ...
user avatar
  • 135
0 votes
0 answers
43 views

Make Wordpress User Name be the Company Name when Registering (not the default 'first name' last name' email address')

Is it possible to make WordPress User Name the Company Name instead when user registers on a site. So the Company Name Field on the form is used as the key field upon registration? (Not first name, ...
user avatar
  • 1
0 votes
1 answer
61 views

How to add logged in username after WordPress URL?

I found a great solution for this issue in this article: How to add wordpress username after url? /* Plugin Name: My Awesome Button Description: The shortcode [my-awesome-button] will be replaced ...
user avatar
0 votes
0 answers
19 views

How to change default username field after login

if i go back to login page after logging in the username is shown in the username/email field(like the image bellow) how can i set it to empty or the user email?
user avatar
0 votes
2 answers
44 views

buddypress remove username from autocomplete

I am using Wordpress and Buddypress and i am trying to remove or hide the username that is being displayed in the autocomplete field of messages in Buddypress. Tried some tests from this post and also ...
user avatar
0 votes
1 answer
241 views

Change user nicename without sanitize

How to remove sanitize from edit_user_profile action? I have a possibility to change user_nicename with the following code: function ex_insert_nicename_input( $user ) { $content = ob_get_clean();...
user avatar
0 votes
5 answers
58 views

Show username only if logged in in a <p> else no directly name

Hi I'm looking all over but I don't find the solution: I have an infobox with: Hi, welcome to our "some text" Now I'd like to add posibility for logged in users "Hello Tony, welcome to our "some ...
user avatar
  • 3
0 votes
0 answers
649 views

How to use same username account for multiple users?

I have an ecommerce where I need to use same username for differents customers. How can I do that? Thanks a lot!
user avatar
  • 11
0 votes
0 answers
834 views

Create a unique username with validation on wordpress registration

I want to add a unique username on registration and hide this field on the registration form. Its working so far, but its not 100% perfect, because if its 3 times the same number then it will throw a ...
user avatar
0 votes
2 answers
98 views

Redirect user to a custom url after logged in

I'm using "Passwordless Login with OTP / SMS & Email - Facebook Account Kit" for login. I want to redirect user to http://www.domain.com/author/<username>/screen after they log in this is ...
user avatar
0 votes
1 answer
168 views

How to get all multi-select user meta values and add them to an array?

I am trying to grab meta_values from a user profile's multi-select field, and convert them to usernames, which I will then input into an array. Let's say that the user has selected two options (out of ...
user avatar
  • 269
0 votes
0 answers
329 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 ...
user avatar
  • 103
1 vote
1 answer
148 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 ...
user avatar
0 votes
1 answer
1k 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 ...
user avatar
  • 7
0 votes
2 answers
20k 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 ...
user avatar
0 votes
0 answers
25 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 ...
user avatar
  • 1
0 votes
1 answer
130 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.
user avatar
4 votes
2 answers
1k 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 ...
user avatar
0 votes
1 answer
42 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 ...
user avatar
  • 1
1 vote
1 answer
5k views

How to display user nickname (not display name) in PHP template?

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 tried these codes below, but ...
user avatar
0 votes
1 answer
90 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 ...
user avatar
0 votes
0 answers
30 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 ...
user avatar
2 votes
1 answer
861 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 ...
user avatar
2 votes
1 answer
5k 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 ...
user avatar
  • 179
1 vote
0 answers
52 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 ...
user avatar
0 votes
1 answer
147 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 ...
user avatar
2 votes
4 answers
3k 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 ...
user avatar
  • 67
0 votes
1 answer
155 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 == '...
user avatar
0 votes
1 answer
67 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 ...
user avatar
  • 1
0 votes
2 answers
646 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
user avatar
0 votes
1 answer
712 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 ...
user avatar
1 vote
2 answers
92 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 ...
user avatar
0 votes
1 answer
129 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 ...
user avatar
1 vote
1 answer
215 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 ...
user avatar
1 vote
0 answers
572 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 ...
user avatar
2 votes
0 answers
459 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-...
user avatar
0 votes
1 answer
3k 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 ...
user avatar
2 votes
3 answers
4k 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.
user avatar
  • 976
0 votes
3 answers
264 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 ...
user avatar
  • 3
3 votes
3 answers
13k 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 ...
user avatar
  • 35
6 votes
1 answer
765 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 ...
user avatar
  • 761
2 votes
1 answer
3k 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 ...
user avatar
0 votes
2 answers
105 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 ...
user avatar
  • 101
1 vote
0 answers
39 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. ...
user avatar
  • 111