[Resolved] Are Hooks Recursive (ex. postwwwacct) ?

Tcalp

Active Member
Mar 16, 2013
25
0
1
Ottawa, ON, Canada
cPanel Access Level
DataCenter Provider
I have multiple add-ons that make use of postwwwacct and am starting work on my own things that I would like to run. It would be nice if the postwwwacct (and others) did a recursive glob search / script exec. Is it possible to change this easily so that I can keep the scripts separate instead of micro-managing different scripts into a single file.
 

KostonConsulting

Well-Known Member
Verifed Vendor
Jun 17, 2010
255
1
68
San Francisco, CA
cPanel Access Level
Root Administrator
You shouldn't use the post* scripts anymore. Instead you'll want to use a Whostmgr::Accounts::Create hook as described here:

WHM Functions | Standardized Hooks (post

The new Standardized Hooks system allows for multiple hooks at each hook point while there can only be one postwwwacct.