Jump to content

get eventName from $vars of hook script


Recommended Posts

Dear All.

I just start reading about hook.

Looks like that every hook made need tobe added to an event.

i.e :
```

 

add_hook('ClientAdd', 1, 'create_forum_account');


```

I need to make a hook script that triggered by multiple event, I'm sure that it's doable with just adding multiple add_hook lines.

Base on [example here](https://developers.whmcs.com/hooks/sample-hook/) , will the 'eventName' included in $vars ?


-bino-

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.

×
×
  • 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