Woocommerce User Welcome Email
For users who registered via Woocommerce, you must use this code for them to be able to receive a Welcome email.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
add_action("woocommerce_created_customer","um_122421_woo_created_customer", 10, 3); | |
function um_122421_woo_created_customer( $customer_id, $new_customer_data, $password_generated ){ | |
um_fetch_user( $customer_id ); | |
UM()->user()->approve(); | |
} |