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.
Source
File: wp-includes/class-wp-recovery-mode-key-service.php
public function generate_recovery_mode_token() { return wp_generate_password( 22, false ); }
Expand full source codeCollapse full source codeView on TracView on GitHub
Changelog
Version | Description |
---|---|
5.2.0 | Introduced. |