WordPress at Your Fingertips
function is not described

WP_Application_Passwords::chunk_password() public WP 5.6.0

Sanitizes and then splits a password into smaller chunks.

{} It's a method of the class: WP_Application_Passwords{}

No Hooks.

Return

String. The chunked password.

Usage

$result = WP_Application_Passwords::chunk_password( $raw_password );
$raw_password(string) (required)
The raw application password.

Changelog

Since 5.6.0 Introduced.

Code of WP_Application_Passwords::chunk_password() WP 5.8.2

public static function chunk_password( $raw_password ) {
	$raw_password = preg_replace( '/[^a-z\d]/i', '', $raw_password );

	return trim( chunk_split( $raw_password, 4, ' ' ) );
}