W3cubDocs

/WordPress

WP_Recovery_Mode_Key_Service::generate_recovery_mode_token(): string

Creates a recovery mode token.

Return

string A random string to identify its associated key in storage.

Source

public function generate_recovery_mode_token() {
	return wp_generate_password( 22, false );
}

Changelog

Version Description
5.2.0 Introduced.

© 2003–2024 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/classes/wp_recovery_mode_key_service/generate_recovery_mode_token