WP_Recovery_Mode_Key_Service::generate_recovery_mode_token
Creates a recovery mode token.
Method of the class: WP_Recovery_Mode_Key_Service{}
No Hooks.
Returns
String. A random string to identify its associated key in storage.
Usage
$WP_Recovery_Mode_Key_Service = new WP_Recovery_Mode_Key_Service(); $WP_Recovery_Mode_Key_Service->generate_recovery_mode_token();
Changelog
| Since 5.2.0 | Introduced. |
WP_Recovery_Mode_Key_Service::generate_recovery_mode_token() WP Recovery Mode Key Service::generate recovery mode token code WP 7.0
public function generate_recovery_mode_token() {
return wp_generate_password( 22, false );
}