WordPress at a glance
function is not described

WP_Recovery_Mode_Link_Service::generate_url() public WP 5.2.0

Generates a URL to begin recovery mode.

Only one recovery mode URL can may be valid at the same time.

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

No Hooks.

Return

String. Generated URL.

Usage

$WP_Recovery_Mode_Link_Service = new WP_Recovery_Mode_Link_Service();
$WP_Recovery_Mode_Link_Service->generate_url();

Changelog

Since 5.2.0 Introduced.

Code of WP_Recovery_Mode_Link_Service::generate_url() WP 5.5.1

<?php
public function generate_url() {
	$token = $this->key_service->generate_recovery_mode_token();
	$key   = $this->key_service->generate_and_store_recovery_mode_key( $token );

	return $this->get_recovery_mode_begin_url( $token, $key );
}