Support » Plugin: WooCommerce » Run a function on customer registration

  • Resolved doubleedesign



    I am trying to run a function when a user registers on a site. It works perfectly when I register someone manually in the backend, but not when someone registers themselves through the WooCommerce checkout process.

    Here’s the outline:

    function do_something_on_registration($user_id) {
    	// do stuff
    add_action( 'user_register', 'do_something_on_registration', 10, 1 ); 

    Is there another hook I should be using in this context rather than user_register?

    Thanks for your time!

Viewing 1 replies (of 1 total)
  • Thread Starter doubleedesign


    Solved – there were some issues with my function itself, and someone on another forum suggested the woocommerce_created_customer hook instead. A combination of these things allowed me to fix my issue.

Viewing 1 replies (of 1 total)
  • The topic ‘Run a function on customer registration’ is closed to new replies.