There are many reasons why you may need to access background information about your WordPress installation, especially if you are considering going deeper with your WordPress development. Customizing your WordPress site may often require special back-end data you can only find in your WordPress database. In this article, we are going to learn how to find your WordPress User ID number.
Find WordPress User ID via phpMyAdmin
Under Databases select phpMyAdmin
Select the database for your WordPress installation
Select users table
Now that you are in the users table, you will see all registered users in your WordPress site. In this example pictured, there is only one registered user. You will find the user ID number in the ID column.
Using SSH and WP-CLI
Using SSH and WP-CLI requires some knowledge in using the Linux command line.
- Log into your server via SSH
- Use the
cdcommand to navigate to the directory which contains your WordPress core files
- Enter the following command to list your WordPress users
wp user list
wp user list command will list the WordPress users and the ID numbers in columns and fields, and you will be able to see the number assigned to your user.
Well done! You now know how to find WordPress user IDs in the WordPress database via phpMyadmin and using SSH and the WP-CLI.