How to Create an admin User with functions.php
Adding an Admin User in WordPress Once connected to your WordPress site, you need to locate your WordPress theme’s functions.php file. It would be at a location like this:/yoursite.com/wp-content/themes/your-current-theme/functions.php Now you need to add this code at the bottom of the file.