Hi,
I think what you need is the woocommerce_after_save_address_validation
trigger:
- add it to the “Custom triggers” option (in “WooCommerce > Settings > Custom Emails > General”),
- select it in your custom email’s “Triggers” option (in “WooCommerce > Settings > Emails > Custom email #X”).
P.S. If you want to use the [user_prop]
shortcode in the custom email’s “Email content” option – add this PHP snippet to your site:
add_filter( 'alg_wc_custom_emails_is_user_email', function ( $is_user_email, $current_filter ) {
return ( 'woocommerce_after_save_address_validation_notification' === $current_filter ? true : $is_user_email );
}, 10, 2 );
And then you can use this in your email’s content:
[user_prop key="nickname"]
[user_prop key="description"]
[user_prop key="first_name"]
[user_prop key="last_name"]
[user_prop key="user_login"]
[user_prop key="user_nicename"]
[user_prop key="user_email"]
[user_prop key="user_url"]
[user_prop key="display_name"]
Please give it a try and let me know what you think.