Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

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

Discussion in 'cPanel Developers' started by Tcalp, Dec 2, 2013.

  1. Tcalp

    Tcalp Active Member

    Joined:
    Mar 16, 2013
    Messages:
    25
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    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.
     
  2. KostonConsulting

    KostonConsulting Well-Known Member

    Joined:
    Jun 17, 2010
    Messages:
    255
    Likes Received:
    1
    Trophy Points:
    68
    Location:
    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.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice