woocommerce_customer_email_verified action-hookWC 11.0.0

Fires after a customer has verified their email address.

Usage

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.

Changelog

Since 11.0.0 Introduced.

Where the hook is called

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

Where the hook is used in WooCommerce

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