Antonio Gil Posted March 19, 2019 Share Posted March 19, 2019 Hello, I am having trouble developing an addon because this trigger seems its not being fired. In the Hook debug activity log looks like the hook is detected. My code in hooks.php. <?php if (!defined("WHMCS")) { die("This file cannot be accessed directly"); } add_hook('InvoiceCreated', 10, function ($params) { localAPI( 'LogActivity', array( 'description' => "Triggered: InvoiceCreated" )); }); What can be the problem? 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.