• Resolved Stefano Lissa

    (@satollo)


    Hi, Stefano here from The Newsletter plugin. We’ve been reached out by a user which uses your plugin and ours extended with the wp user registration addon.

    But when a user is registered it seem we’re not been able to intercept the event. Does your plugin use the wp_insert_user() function? If so the user_register event should be fired.

    Thank you for any help!

Viewing 4 replies - 1 through 4 (of 4 total)
  • Hi @satollo,

    Sorry for the delayed response.
    To intercept and run a script after a user is registered, you can use this hook instead:

    //hook after registration(UR)
    do_action( 'user_registration_after_register_user_action', $form_data, $form_id, $user_id );
    

    I hope it helps.
    Let me know if you have any other questions and I will get back to you.
    Regards!

    Thread Starter Stefano Lissa

    (@satollo)

    Hi, to let other plugins act on user registration you should fire the same event fired by wp_user_insert(). Could you check that? That event has the just created WP_User object which is the standard in WP.

    Thank you!

    Hi @satollo,

    I can confirm that the function wp_insert_user() function is used and the “user_register” event is fired after a user is registered.
    I hope it helps. Let me know if you have any other questions and I will get back to you.

    Regards!

    Thread Starter Stefano Lissa

    (@satollo)

    Hi, I’ll report it to the user, since he is not seen that event fired. Maybe it is fired too early. I’ll try to check that.

    Stefano.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Is the user_register event fired?’ is closed to new replies.