Search code examples
wordpressreset-password

How to Create a Front-end Lost Password Page for WordPress?


I am trying to build a page for user to change their own password. Is there any hook for it? I just google it but I did not succeed. Of course without plugins.


Solution

  • The function you're looking for is wp_set_password( $password, $user_id ). See Codex page for more info.