WP_Application_Passwords::hash_password()public staticWP 6.8.0

Hashes a plaintext application password.

Method of the class: WP_Application_Passwords{}

No Hooks.

Returns

String. Hashed password.

Usage

$result = WP_Application_Passwords::hash_password(;

Changelog

Since 6.8.0 Introduced.

WP_Application_Passwords::hash_password() code WP 6.8.1

public static function hash_password(
	#[\SensitiveParameter]
	string $password
): string {
	return wp_fast_hash( $password );
}