wp_hash_password_algorithm
wp_hash_password_algorithm
Appears in: wordpress-6.8, wordpress-6.8.1, wordpress-6.8.2, wordpress-6.8.3, wordpress-6.9, wordpress-6.9.1, wordpress-6.9.2, wordpress-6.9.3, wordpress-6.9.4, wordpress-7.0
Hook Type: filter
Displaying hooks found in version: wordpress-7.0apply_filters('wp_hash_password_algorithm') is found 2 times:
- /wp-includes/pluggable.php line 2785
* @since 7.0.0 The `$algorithm` parameter is now always a string. * * @param string $algorithm The hashing algorithm. Default is the value of the `PASSWORD_BCRYPT` constant. */ $algorithm = apply_filters( 'wp_hash_password_algorithm', PASSWORD_BCRYPT ); /** * Filters the options passed to the password_hash() and password_needs_rehash() functions. * * The default hashing algorithm is bcrypt, but this can be changed via the {@see 'wp_hash_password_algorithm'} * filter. You must ensure that the options are appropriate for the algorithm in use. - /wp-includes/pluggable.php line 2915
return false; } /** This filter is documented in wp-includes/pluggable.php */ $algorithm = apply_filters( 'wp_hash_password_algorithm', PASSWORD_BCRYPT ); /** This filter is documented in wp-includes/pluggable.php */ $options = apply_filters( 'wp_hash_password_options', array(), $algorithm ); $prefixed = str_starts_with( $hash, '$wp' );