How can I verify the old password from the database before updating the new one in WordPress. The POST variable brings the following data from the update password pages form.
Array
(
[old_password] => oldpass
[new_password] => newpass
[confirm_password] => newpass
)
Is there any default function which will handle this password update matter. What is the encryption method wordpress follows to encrypt the password?
I am still new to wordpress and couldn’t find any solve after googling this requirement. Please direct me to a solve.
I had the similar problem and I have solved it, Here is the solve you can follow, it works good and I have already used it for my own project. Please let me know if you stuck with it.
test and working code