Last updated on June 26th, by Robert Abela. The WordPress administrator account is the most targeted account on a WordPress blog or site. Therefore it is recommended to properly secure the WordPress administrator account. One of the recommended security tweaks is to change the default ID assigned to the WordPress administrator user account. This WordPress security article explains why you should change the default WordPress administrator account ID and how to change it. If your WordPress blog or site is a victim of a targeted attack a malicious hacker can easily identify the WordPress administrator username manually or by using automated tools. If a malicious hacker identifies the username of your WordPress administrator, he can launch a brute force or dictionary attack specifically against the WordPress administrator account, thus making the attack an easier feat.
2. Get Current User ID (and username, email etc)
Join the discussion
Expand full source code Collapse full source code View on Trac. Delete a given auto-draft changeset or the autosave revision for a given changeset or delete changeset lock. Adds an admin notice alerting the user to check for confirmation request email after email address change. This function is not means for retrieving the current logged in user as it been made abundently clear some of the examples so far. This might not be a concern for small applications of the function, but personally in my experience I have a system where I needed the current user id multiple times and it slowed down the site by a lot as the user table was also large. You must log in before being able to contribute a note or feedback. The code below is the exact same thing but with less overhead. Get current user ID, if the user is logged in.
How to Change the ID of the WordPress Administrator
It only takes a minute to sign up. Connect and share knowledge within a single location that is structured and easy to search. Am adding users in the backend and have taken site from live environment and put into localhost development environment , but I have noticed a few things on localhost not sure if these problems also exist on the live environment after setting it up. Unable to add Users, either in the backend or through the front-end. Unable to update Wordpress, as I get this error message: Another Update is already in progress. It simply does not exist. Have downloaded Wordpress 4. The same behavior still exists.
Join Stack Overflow to learn, share knowledge, and build your career. Connect and share knowledge within a single location that is structured and easy to search. I have a simple registration form WordPress. I was able to cancel the Username field, Then what happens now - the user's email is the username. I want to have no username, just id user Unique. If you don't want to use a username you can generate a random one using uniqid php function. Stack Overflow for Teams — Collaborate and share knowledge with a private group. Create a free Team What is Teams? Learn more.