W3cubDocs

/WordPress

WP_Recovery_Mode_Key_Service::generate_recovery_mode_token()

Creates a recovery mode token.

Return

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

Source

File: wp-includes/class-wp-recovery-mode-key-service.php

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

Changelog

Version Description
5.2.0 Introduced.

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