Hi @hefti
Did you mean to send the Welcome email when you create the user via WP Admin > Users?
Regards,
Thread Starter
hefti
(@hefti)
When i create it via the WPADmin Interface, then it works. But when a User create his account throught Woocommerce, then the Plugin doesn´t send anything?
Hi @hefti
Please try adding the following code snippets to your theme/child-theme’s functions.php file or use the Code Snippets to run the code:
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();
}
The above code will send a Welcome Email once the user registers on the checkout page.
Regards,
Thread Starter
hefti
(@hefti)
Thanks a lot, it works fine!
Thanks for letting us know. I’m marking this as resolved now.
Regards,