wp_set_password

wp_set_password ( $password, $user_id )

Parameters:
  • (string) $password The plaintext new user password
  • (int) $user_id User ID
Uses:
Defined at:

Description

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.

Related Functions

wp_hash_password, reset_password, wp_check_password, wp_generate_password, wp_lostpassword_url

Top Google Results

User discussions

wpseek mobile