wp_set_password

wp_set_password

Hook Type: action

See hook in core

Displaying hooks found in version: wordpress-6.9

do_action('wp_set_password') is found 3 times:

  • /wp-includes/pluggable.php line 3130
    		 * @param string  $password      The plaintext password just set.
    		 * @param int     $user_id       The ID of the user whose password was just set.
    		 * @param WP_User $old_user_data Object containing user's data prior to update.
    		 */
    		do_action( 'wp_set_password', $password, $user_id, $old_user_data );
    	}
    endif;
    
    if ( ! function_exists( 'get_avatar' ) ) :
    	/**
    	 * Retrieves the avatar `<img>` tag for a user, email address, MD5 hash, comment, or post.
    
  • /wp-includes/user.php line 2525
    	$user = new WP_User( $user_id );
    
    	if ( ! $update ) {
    		/** This action is documented in wp-includes/pluggable.php */
    		do_action( 'wp_set_password', $userdata['user_pass'], $user_id, $user );
    	}
    
    	/**
    	 * Filters a user's meta values and keys immediately after the user is created or updated
    	 * and before any user meta is inserted or updated.
    	 *
    
  • /wp-includes/user.php line 2712
    		$plaintext_pass        = $userdata['user_pass'];
    		$userdata['user_pass'] = wp_hash_password( $userdata['user_pass'] );
    
    		/** This action is documented in wp-includes/pluggable.php */
    		do_action( 'wp_set_password', $plaintext_pass, $user_id, $user_obj );
    
    		/**
    		 * Filters whether to send the password change email.
    		 *
    		 * @since 4.3.0
    		 *