Codex tools: Log in
Contents |
Updates the user's password with a new encrypted one.
For integration with other applications, this function can be overwritten to instead use the other package password checking algorithm. @uses $wpdb WordPress database object for queries @uses wp_hash_password() Used to encrypt the user's password before passing to the database
<?php wp_set_password( $password, $user_id ) ?>
Below is an example showing how to update a user's password
<?php $user_id = 1; $password = 'HelloWorld'; wp_set_password( $password, $user_id ); ?>
Since: 2.5
wp_set_password() is located in wp-includes/pluggable.php