retrieve_password_key

retrieve_password_key

Hook Type: action
See hook in
Displaying hooks found in version: wordpress-5.2.2

do_action('retrieve_password_key') is found 2 times:

  • /wp-includes/pluggable.php line 1966
    		// Generate something random for a password reset key.
    		$key = wp_generate_password( 20, false );
    
    		/** This action is documented in wp-login.php */
    		do_action( 'retrieve_password_key', $user->user_login, $key );
    
    		// Now insert the key, hashed, into the DB.
    		if ( empty( $wp_hasher ) ) {
    			require_once ABSPATH . WPINC . '/class-phpass.php';
    			$wp_hasher = new PasswordHash( 8, true );
    		}
    
  • /wp-includes/user.php line 2274
    	 *
    	 * @param string $user_login The username for the user.
    	 * @param string $key        The generated password reset key.
    	 */
    	do_action( 'retrieve_password_key', $user->user_login, $key );
    
    	// Now insert the key, hashed, into the DB.
    	if ( empty( $wp_hasher ) ) {
    		require_once ABSPATH . WPINC . '/class-phpass.php';
    		$wp_hasher = new PasswordHash( 8, true );
    	}