Entries by rush-intely

How to programmatically add a WordPress admin user using functions.php

Post Views: 6 Step 1: Open your theme’s functions.php using a editor. Step 2:Paste the following code at the bottom of the functions.php (need to remove once the user is added) Step 3:Save the functions.php file and run the site once. Step 4:Go to the site’s login page (wp-login.php) and login with the username and […]