• Resolved siddheshsj

    (@siddheshsj)


    Hi,

    Thanks for the wonderful plugin. I need to know how can i get information once user registers to the site. Basically i need hook which will provide me with details once user registration is complete. I know i can add re-direct once registration is complete but it may create a issue once multiple people register at same time.

    Can you please advise ?

    Thanks,
    Siddhesh

Viewing 3 replies - 1 through 3 (of 3 total)
  • Hi @siddheshsj,

    If you can explain to me your exact purpose of using the hook then it would easy for me to provide you the correct hook.
    Let me know and I will get back to you.

    Regards!

    Thread Starter siddheshsj

    (@siddheshsj)

    Hi,

    Thanks for above. I manage to get hook for registration and its working fine. But now i need to know the hook which i can use once user is approved by admin.

    In other words, once registered user’s status is changed to approved , i need to run my code. Similarly, once email is verified by user.

    Can you please advise?

    Thanks

    Hi @siddheshsj,

    Sorry for the delayed response.
    You can use this hook to fire a PHP script after a user status is approved.

    //hook to use after user is approved by admin
    add_action( 'ur_user_status_updated' , 'create_customer_365', 10, 3);
    function create_customer_365( $status, $user_id, $alert_user)
    {
    	//code part
    }
    

    Note: Note: $status is 1 for approved, 0 for pending and -1 for denied, $user_id is id of user and $alert_user is either true or false.
    When $alert_user is true, the user is notified through email about status changing.

    I hope that helps.
    Regards!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Hooks and filters on registration’ is closed to new replies.