generate_recovery_mode_key action-hookWP 5.2.0

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

WP_Recovery_Mode_Key_Service::generate_and_store_recovery_mode_key()
generate_recovery_mode_key
wp-includes/class-wp-recovery-mode-key-service.php 76
do_action( 'generate_recovery_mode_key', $token, $key );

Where the hook is used in WordPress

Usage not found.