I used the snippet below to lock out all administrators and editors except myself
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.
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 show up instead of the blank space? Something like this “Hi >No Name<, please settle your name in your account.”
I’m working on creating some text that says ‘Login’ to users that are not logged in, and the user’s username or display name when logged in.
I want to create a user account on my multi-site installation of WordPress with a username less than 4 characters. But since WordPress has a limit of usernames at least being 4 characters, this error message is shown:
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.
I need to know what the wp specifications for the usernames are. Like allowed minimum and maximum length, are special characters like ü,ö,ä,ß accepted,..?
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?
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.