Can I change the default wordpress password hashing system by overriding the wp_hash_password function from plugin?
If yes, then what will happen to old stored passwords in DB? How will they be validated for login?
Can I change the default wordpress password hashing system by overriding the wp_hash_password function from plugin?
If yes, then what will happen to old stored passwords in DB? How will they be validated for login?
You must be logged in to post a comment.
Just figured it out. So thought to leave the solution here, if someone else need it:
To change the default hashing system, need to overwrite wp_hash_password() function: (can be done in a plugin)
Now you will need to overwrite wp_check_password() to match your hashing structure: (can be done in a plugin as well)
Please check wp_check_password