Results 1 to 3 of 3

Thread: hooks not work

  1. #1
    Join Date
    May 2012
    Posts
    14

    Default hooks not work

    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 Code:
    <?php
    function my_hook($invoice_id) {

    //my code

    }

    add_hook("InvoicePaid",1,"my_hook");
    ?>

  2. #2
    Join Date
    Sep 2011
    Posts
    44

    Default

    as far as I know all hooks should be in /includes/hooks/ directory

  3. #3
    Join Date
    Feb 2009
    Location
    Atlanta, GA
    Posts
    1,683

    Default

    Quote Originally Posted by sdemidko View Post
    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.

Similar Threads

  1. More hooks please!
    By leemason in forum Feature Requests
    Replies: 0
    Last Post: 09-05-11, 11:05 AM
  2. WHMCS Action Hooks vs. Cpanel Hooks
    By mike2352 in forum Pre-Sales Questions
    Replies: 3
    Last Post: 05-18-09, 11:24 PM
  3. New hooks
    By odocoa in forum Feature Requests
    Replies: 20
    Last Post: 04-19-08, 06:11 PM