• Resolved siddheshsj

    (@siddheshsj)


    Hi,

    I need a hook action which will trigger once admin approves the user. Can you please help with that?

    Thanks,
    Siddhesh

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

    You can use this code if you want to fire an external PHP script after a user’s status is changed.
    Here is the code:

    //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: $status is 0 for pending, 1 for approved, -1 for denied.

    I hope it helps.
    Regards!

Viewing 1 replies (of 1 total)
  • The topic ‘Hooks and filters on user approval’ is closed to new replies.