Difference between revisions of "Hooks"

From WHMCS Documentation

m (Removed erroneous asterisk)
Line 1: Line 1:
 
Action hooks allow you to write your own PHP code that will run when specific actions occur in WHMCS. There is a function for each action that supports hooks.
 
Action hooks allow you to write your own PHP code that will run when specific actions occur in WHMCS. There is a function for each action that supports hooks.
  
To view the available action hooks, open the file includes/actionhooks.php (The variables avaible in a specific function are listed in the comments for that function).
+
To view the available action hooks, open the file includes/actionhooks.php (The variables available in a specific function are listed in the comments for that function).
  
 
Invalid code here will will cause WHMCS to fail so ensure your code is valid.
 
Invalid code here will will cause WHMCS to fail so ensure your code is valid.

Revision as of 15:57, 6 December 2008

Action hooks allow you to write your own PHP code that will run when specific actions occur in WHMCS. There is a function for each action that supports hooks.

To view the available action hooks, open the file includes/actionhooks.php (The variables available in a specific function are listed in the comments for that function).

Invalid code here will will cause WHMCS to fail so ensure your code is valid.