woocommerce_customer_verify_email_notification
Triggers sending of the customer email-verification email.
Usage
add_action( 'woocommerce_customer_verify_email_notification', 'wp_kama_woocommerce_customer_verify_email_notification_action', 10, 2 );
/**
* Function for `woocommerce_customer_verify_email_notification` action-hook.
*
* @param int $user_id The WordPress user ID of the customer.
* @param string $verify_url The one-time verification URL to include in the email.
*
* @return void
*/
function wp_kama_woocommerce_customer_verify_email_notification_action( $user_id, $verify_url ){
// action...
}
- $user_id(int)
- The WordPress user ID of the customer.
- $verify_url(string)
- The one-time verification URL to include in the email.
Changelog
| Since 11.0.0 | Introduced. |
Where the hook is called
woocommerce_customer_verify_email_notification
woocommerce/src/Internal/CustomerEmailVerification/VerificationController.php 387
do_action( 'woocommerce_customer_verify_email_notification', $user_id, $verify_url );
Where the hook is used in WooCommerce
woocommerce/src/Internal/CustomerEmailVerification/Emails/CustomerVerifyEmail.php 63
add_action( 'woocommerce_customer_verify_email_notification', array( $this, 'trigger' ), 10, 2 );