Forum Replies Created

Viewing 1 replies (of 1 total)
  • @toto I used your code from the above link in my function.php file but I am having a glitch. I am getting the email when a new customer registers, but the User Name and Email Address in the email is blank, so I do not know who the new customer is. This is important, because I have some clients from my irl store that I need to transfer their loyalty points to their online account. Is there something I missed?

    The code I copied is:

    // Woocommerce New Customer Admin Notification Email
    add_action(‘woocommerce_created_customer’, ‘admin_email_on_registration’);
    function admin_email_on_registration() {
    $user_id = get_current_user_id();
    wp_new_user_notification( $user_id );
    }

    Any help would be great. Thanks!

Viewing 1 replies (of 1 total)