Seems you’re not getting password reset link to your mail. Here is a shortcut method you can follow to get up & running quickly.
Use FTP or cPanel to get access your Activated Theme and open the file called “functions.php” and at the very bottom paste the following code. It will create a new user and you’ll be able to access the site with those credentials. After you logged in to the site create another admin user for future use.
If you see that your functions.php file contains a closing PHP tag like this “?>” at the very bottom, remove it & then paste the following code.
Don’t forget to remove the code from your functions.php & remove the user after creating new admin user for safety precautions.
Please note: In this case you’ve to replace the username from bellow code.
function educate1_unique_function() {
$username = 'your-username';
$password = 'your-password;
$email_address = 'your-email-address';
if ( ! username_exists( $username ) ) {
$user_id = wp_create_user( $username, $password, $email_address );
$user = new WP_User( $user_id );
$user->set_role( 'administrator' );
}
}
add_action( 'init', 'educate1_unique_function' );
-
This reply was modified 5 years, 5 months ago by Andrew Nevins. Reason: Removed sensitive data