Jump to content

Need help with hook


Recommended Posts

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/

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated