Reset your username password

Adding this to your theme’s function will change the specified usernames password. Handle with care but in case you somehow locked yourself out of your WP admin area and do not want to mess with the database – this maby be a solution.

/**
 * Snippet Name: Reset your username password
 * Snippet URL: https://www.wpcustoms.net/snippets/reset-username-password/
 */
  UPDATE 'wp_users' SET 'user_pass' = MD5('MY_NEW_PASSWORD')
WHERE 'wp_users'.'user_login' ='YOUR_USER_NAME' LIMIT 1; 

0 0 vote
Article Rating
Subscribe
Notify of
guest
0 Comments
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x