If your Wordpress admin account get locked then you can try to restore admin account access by using the “Lost your password?” link on the admin login page or you can try to reset your password by directly updating it in database.
There is one more way if you have FTP access to your Wordpress installation folder. Guess How? By creating a new admin account.
In case you have forgot your Magento admin password and need to reset it then you can use the forgot password link provided in the login screen or you can directly reset it in the database.
On the “Forgot your password” screen enter admin user email address and click “Retrieve Password” button, an email will be sent with link to reset your password.