• Resolved curtm

    (@curtm)


    When a user registers using this plugin, I do NOT receive an email alerting me of a new user. However, if they were to register using the original wp-admin.php wordpress login, I do get the email. I want to get an email when a user registers. Help please

    thanks!

    The page I need help with: [log in to see the link]

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author xootix

    (@xootix)

    Hello @curtm

    Please try pasting this code in your functions.php

    add_action( 'xoo_el_created_customer', function( $customer_id, $data ){
    	wp_send_new_user_notifications( $customer_id );
    }, 10, 2 );

    @xootix the code snippet above did not work for me.

    I am still not receiving an email notification when someone registers for an account.

    I used to use a code snippet that would send me an email notification when I was having users register, using the default woocommerce form. Here’s that code, which used to work…

    add_action( 'woocommerce_created_customer', 'woocommerce_created_customer_admin_notification' );
    function woocommerce_created_customer_admin_notification( $customer_id ) {
      wp_send_new_user_notifications( $customer_id, 'admin' );
    }
    • This reply was modified 4 years, 11 months ago by jord8on.
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘email on registration’ is closed to new replies.