WP_Recovery_Mode_Key_Service::generate_recovery_mode_token() WordPress Method

The WP_Recovery_Mode_Key_Service::generate_recovery_mode_token() Wordpress method is used to generate a new, secure recovery mode token. This token is used to access the site in recovery mode, which is a special mode designed to allow site administrators to troubleshoot and fix problems with their site. In order to generate a new recovery mode token, simply call the WP_Recovery_Mode_Key_Service::generate_recovery_mode_token() method. This method will return a new, secure recovery mode token that can be used to access the site in recovery mode.

WP_Recovery_Mode_Key_Service::generate_recovery_mode_token() #

Creates a recovery mode token.


Return

(string) A random string to identify its associated key in storage.


Top ↑

Source

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

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


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.