• Resolved hefti

    (@hefti)


    Hi, is it possible that the welcome email will be also send for user roles that not directly created from Ultimatemeber, because wordpress has that already created?

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Contributor Champ Camba

    (@champsupertramp)

    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?

    Plugin Contributor Champ Camba

    (@champsupertramp)

    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!

    Plugin Contributor Champ Camba

    (@champsupertramp)

    Thanks for letting us know. I’m marking this as resolved now.

    Regards,

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘USer Roles’ is closed to new replies.