WordPress at Your Fingertips
function is not described

WP_Recovery_Mode_Key_Service::generate_recovery_mode_token() public WP 5.2.0

Creates a recovery mode token.

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

No Hooks.

Return

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

Usage

$WP_Recovery_Mode_Key_Service = new WP_Recovery_Mode_Key_Service();
$WP_Recovery_Mode_Key_Service->generate_recovery_mode_token();

Changelog

Since 5.2.0 Introduced.

Code of WP_Recovery_Mode_Key_Service::generate_recovery_mode_token() WP 5.8

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