generate_recovery_mode_key
Fires when a recovery mode key is generated.
Usage
add_action( 'generate_recovery_mode_key', 'wp_kama_generate_recovery_mode_key_action', 10, 2 ); /** * Function for `generate_recovery_mode_key` action-hook. * * @param string $token The recovery data token. * @param string $key The recovery mode key. * * @return void */ function wp_kama_generate_recovery_mode_key_action( $token, $key ){ // action... }
- $token(string)
- The recovery data token.
- $key(string)
- The recovery mode key.
Changelog
Since 5.2.0 | Introduced. |
Where the hook is called
generate_recovery_mode_key
wp-includes/class-wp-recovery-mode-key-service.php 76
do_action( 'generate_recovery_mode_key', $token, $key );