Jump to content

Custom Addon Module Hooks not Fired


Recommended Posts

Hi everyone, 

             I facing an issue with hooks in my custom addon module in WHMCS 7.5 . My module work fine on WHMCS 7.4.2 but it hooks not fired in WHMCS 7.5.  Beside of this my module work fine in addon configuration and managing in Admin Panel in WHMCS 7.5 only hooks not fired.  i use three hooks. Please help me to solve this issue.

add_hook( 'ClientAreaHeadOutput', 1, 'mymodule_ClientAreaHeadOutput_Hook' );
add_hook( 'ClientAreaPage', 1, 'mymodule_ClientAreaPage_Hook' );
add_hook('ClientAreaHeaderOutput', 1, 'mymodule_ShowSocialSharing');
Link to comment
Share on other sites

  • WHMCS Support Manager

Hi @saroha,

To confirm whether the hook point is being called and whether your file is being loaded, please navigate to Setup > General Settings > Other tab and enable the "Hooks Debug Mode" option.
Now reproduce the issue. Then immediately switch Hooks Debug Mode off.
Now review Utilities > Logs > Activity Log, amongst the log entries you should see the hook point being called and your file being loaded.

If your hook file is loaded then this indicates that the problem lies with your code and you'll need to debug that at your end.

Link to comment
Share on other sites

This topic is now closed to further replies.
  • 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