techwthquestion Posted October 18, 2019 Share Posted October 18, 2019 Hello, After opening an ticket, I want to run some php code. can some please give me hook for that? I have tried to use ClientAreaPageSubmitTicket but not able to run complete code. I need to get generated ticket id and send that via php code. Thanks in advance. 0 Quote Link to comment Share on other sites More sharing options...
LosBooom Posted October 24, 2019 Share Posted October 24, 2019 On 10/18/2019 at 7:18 PM, techwthquestion said: Hello, After opening an ticket, I want to run some php code. can some please give me hook for that? I have tried to use ClientAreaPageSubmitTicket but not able to run complete code. I need to get generated ticket id and send that via php code. Thanks in advance. Check this out: https://developers.whmcs.com/hooks-reference/ticket/#ticketopen <?php add_hook('TicketOpen', 1, function($vars) { // $vars['ticketed']; }); https://developers.whmcs.com/hooks/hook-index/ 0 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.