Alert: This function’s access is marked private. This means it is not intended for use by plugin or theme developers, only in other core functions. It is listed here for completeness.

WP_Recovery_Mode_Link_Service::get_recovery_mode_begin_url() WordPress Method

The WP_Recovery_Mode_Link_Service::get_recovery_mode_begin_url() method is used to get the URL of the recovery mode page. This page is used to enter recovery mode and begin the process of recovering a WordPress site.

WP_Recovery_Mode_Link_Service::get_recovery_mode_begin_url( string $token, string $key ) #

Gets a URL to begin recovery mode.


Parameters

$token

(string)(Required)Recovery Mode token created by generate_recovery_mode_token().

$key

(string)(Required)Recovery Mode key created by generate_and_store_recovery_mode_key().


Top ↑

Return

(string) Recovery mode begin URL.


Top ↑

Source

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

	private function get_recovery_mode_begin_url( $token, $key ) {

		$url = add_query_arg(
			array(
				'action'   => self::LOGIN_ACTION_ENTER,
				'rm_token' => $token,
				'rm_key'   => $key,
			),
			wp_login_url()
		);

		/**
		 * Filters the URL to begin recovery mode.
		 *
		 * @since 5.2.0
		 *
		 * @param string $url   The generated recovery mode begin URL.
		 * @param string $token The token used to identify the key.
		 * @param string $key   The recovery mode key.
		 */
		return apply_filters( 'recovery_mode_begin_url', $url, $token, $key );
	}


Top ↑

Changelog

Changelog
VersionDescription
5.2.0Introduced.

The content displayed on this page has been created in part by processing WordPress source code files which are made available under the GPLv2 (or a later version) license by theĀ Free Software Foundation. In addition to this, the content includes user-written examples and information. All material is subject to review and curation by the WPPaste.com community.