Andrey Posted July 1, 2012 Share Posted July 1, 2012 I create hook i put file hoohs.php in folder my my addon module this hook not work Please help, we need to do whatever it worked. <?php function my_hook($invoice_id) { //my code } add_hook("InvoicePaid",1,"my_hook"); ?> 0 Quote Link to comment Share on other sites More sharing options...
sdemidko Posted July 6, 2012 Share Posted July 6, 2012 as far as I know all hooks should be in /includes/hooks/ directory 0 Quote Link to comment Share on other sites More sharing options...
laszlof Posted July 6, 2012 Share Posted July 6, 2012 as far as I know all hooks should be in /includes/hooks/ directory Adding modules will also accept hooks within a file called hooks.php in their directory. @OP: you can try to deactivate/reactivate the module. 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.