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!

Account and Package Hook in WHM

Discussion in 'cPanel Developers' started by yingfan, Oct 8, 2010.

  1. yingfan

    yingfan Registered

    Oct 8, 2010
    Likes Received:
    Trophy Points:
    Hi yeah.

    I am looking for a hook for the event of update for account/package, and package upgrade, for WHM.
    The closest type of hook I find is script hook, but I do not see any hook for the related events other than account creation.

    I turned to the sample CustomEventHandler to check for APIs called during the events mentioned.
    And turns out that not even EvenHandler is called (I placed a STDERR print in EvenHandler__Init() ).

    Can anyone help ?
    Thanks yeah.
  2. cPanelDavidN

    cPanelDavidN Integration Developer

    Dec 17, 2009
    Likes Received:
    Trophy Points:
    Houston, TX
    cPanel Access Level:
    Root Administrator
    That's correct.

    1) there is not a script hook for this administrative action (package management)

    2) CustomEventHandler is only called for API1 and API2 calls; WHM's package management does not use API1 or API2 calls. It uses it's own code path.

    I can't think of a way to hook the package management functionality in WHM or the XML-API. The only think I can suggest, at this time, is to place a feature request in the Feature Request Forum.

    Best Regards,
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...

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