The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

[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:
    18
    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.
     
Loading...

Share This Page