woocommerce_customer_email_verified хук-событиеWC 11.0.0

Fires after a customer has verified their email address.

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

add_action( 'woocommerce_customer_email_verified', 'wp_kama_woocommerce_customer_email_verified_action' );

/**
 * Function for `woocommerce_customer_email_verified` action-hook.
 * 
 * @param int $user_id The WordPress user ID of the verified customer.
 *
 * @return void
 */
function wp_kama_woocommerce_customer_email_verified_action( $user_id ){

	// action...
}
$user_id(int)
The WordPress user ID of the verified customer.

Список изменений

С версии 11.0.0 Введена.

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

EmailVerificationService::mark_verified()
woocommerce_customer_email_verified
woocommerce/src/Internal/CustomerEmailVerification/EmailVerificationService.php 116
do_action( 'woocommerce_customer_email_verified', $user_id );

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

woocommerce/src/Internal/CustomerEmailVerification/CustomerEmailVerification.php 41
add_action( 'woocommerce_customer_email_verified', 'wc_update_new_customer_past_orders' );