How can I fire an action after the user has been successfully activated?

Top WooCommerce & WordPress Plugins Forums Email Verification for WooCommerce How can I fire an action after the user has been successfully activated?

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #101244
    Michal Grabowski
    Guest

    I’d like to fire and action after the user has been successfuly activated (has clicked the activation link and it “worked”). I’ve found ‘alg_wc_ev_user_account_activated’ – is that what I should use? It seems not to fire in my plugin (at least not after clicking the activation link)

    #101245
    WPFactory Plugins
    Participant
    Plugin Author

    Hi Michal,

    Please test it with version 2.0.5. It should fix the issue.
    If you still have a problem, try to change the priority of your callback. Using 9 for example should work.

    Like this:

    add_action('alg_wc_ev_user_account_activated', 'the_function', 9, 2); 
    #101246
    Michal Grabowski
    Guest

    Thanks for a very quick response!
    I first started with checking the priority and… it worked 🙂 At first I didn’t understand why, but then I just noticed “exit” at the end of “redirect_on_success_activation” (at least in version 2.0.2). I see what you did there 😉
    Thanks again for your help.

Viewing 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.