Switch language

wpseek.com
A WordPress-centric search engine for devs and theme authors




reset_password [ WordPress Function ]

reset_password ( $user, $new_pass )
Parameters:
  • (object) $user The user
  • (string) $new_pass New password for the user in plaintext
Defined at:



Handles resetting the user's password.

Source


<?php
function reset_password($user$new_pass) {
    
do_action('password_reset'$user$new_pass);

    
wp_set_password($new_pass$user->ID);

    
wp_password_change_notification($user);
}
?>

Examples [ wp-snippets.com ]

Top Google zoekresultaten

Meer ...

Gebruikersdiscussies [ wordpress.org ]

0 User Note(s)

Nog geen één. Wees de eerste!

Nieuw toevoegen ...



HTML5 Powered with CSS3 / Styling, Performance & Integration, and Semantics