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.


String. Generated URL.


$WP_Recovery_Mode_Link_Service = new WP_Recovery_Mode_Link_Service();


Since 5.2.0 Introduced.

Code of WP_Recovery_Mode_Link_Service::generate_url() WP 5.7.2

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 );