WP_Recovery_Mode_Link_Service::generate_url

Advertisement

Summery Summery

Generates a URL to begin recovery mode.

Syntax Syntax

WP_Recovery_Mode_Link_Service::generate_url()

Description Description

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

Return Return

(string) Generated URL.

Source Source

File: wp-includes/class-wp-recovery-mode-link-service.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 );
	}

Advertisement

Changelog Changelog

Changelog
Version Description
5.2.0 Introduced.

Advertisement

Leave a Reply