woocommerce_reset_password_notification хук-событиеWC 1.0

Send email notification.

Использование

add_action( 'woocommerce_reset_password_notification', 'wp_kama_woocommerce_reset_password_notification_action', 10, 2 );

/**
 * Function for `woocommerce_reset_password_notification` action-hook.
 * 
 * @param  $user_login 
 * @param  $key        
 *
 * @return void
 */
function wp_kama_woocommerce_reset_password_notification_action( $user_login, $key ){

	// action...
}
$user_login
-
$key
-

Где вызывается хук

WC_Shortcode_My_Account::retrieve_password()
woocommerce_reset_password_notification
woocommerce/includes/shortcodes/class-wc-shortcode-my-account.php 341
do_action( 'woocommerce_reset_password_notification', $user_login, $key );

Где используется хук в WooCommerce

woocommerce/includes/emails/class-wc-email-customer-reset-password.php 69
add_action( 'woocommerce_reset_password_notification', array( $this, 'trigger' ), 10, 2 );