Menu Adam R Brown

WP hooks navigation: Home/browseActions indexFilters index

Source View: password_needs_rehash

To save our bandwidth, we show only a snippet of code around each occurence of the hook. View complete file in SVN (without highlighting).

Understanding Source Code

The best way to understand what a hook does is to look at where it occurs in the source code.

Remember, this hook may occur in more than one file. Moreover, the hook's context may change from version to version.

Source View

Line Code
2931           /**
2932            * Filters whether the password hash needs to be rehashed.
2933            *
2934            * @since 6.8.0
2935            *
2936            * @param bool       $needs_rehash Whether the password hash needs to be rehashed.
2937            * @param string     $hash         The password hash.
2938            * @param string|int $user_id      Optional. ID of a user associated with the password.
2939            */
2940           return apply_filters( 'password_needs_rehash', $needs_rehash, $hash, $user_id );
2941      }
2942 endif;
2943
2944 if ( ! function_exists( 'wp_generate_password' ) ) :
2945      /**
2946       * Generates a random password drawn from the defined set of characters.
2947       *
2948       * Uses wp_rand() to create passwords with far less predictability
2949       * than similar native PHP functions like `rand()` or `mt_rand()`.