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!

Hook for Multiple Account Modification/Upgrade

Discussion in 'cPanel Developers' started by UADerek, Jul 31, 2012.

  1. UADerek

    UADerek Member

    Joined:
    Jul 31, 2012
    Messages:
    6
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Root Administrator
    Does cPanel/WHM provide a hook for when multiple accounts are modified/upgraded?

    More specifically – when using the 'Modify/Upgrade Multiple Accounts' feature in WHM, is there a hook that will run after a user clicks 'Change?'

    Thanks,
    Derek
     
  2. morissette

    morissette Well-Known Member

    Joined:
    May 24, 2009
    Messages:
    119
    Likes Received:
    0
    Trophy Points:
    66
    Location:
    Austin, TX
    cPanel Access Level:
    Root Administrator
    I dont see anything specific on the sdk. What exactly are you looking to do after every modification/upgrade?
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. cPanelDavidN

    cPanelDavidN Integration Developer

    Joined:
    Dec 17, 2009
    Messages:
    571
    Likes Received:
    3
    Trophy Points:
    68
    Location:
    Houston, TX
    cPanel Access Level:
    Root Administrator
    Hi all,

    Currently there is not a hook for 'Upgrade/Downgrade an Account' or 'Modify/Upgrade Multiple Accounts'. We hope to have those in the future. I would suggest looking in the feature request for for an existing thread and adding a post for you support for said feature; start a new thread if one doesn't exist. Posting your support for feature development helps us prioritize improvements to the product.

    Best Regards,
    -DavidN
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  4. UADerek

    UADerek Member

    Joined:
    Jul 31, 2012
    Messages:
    6
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Root Administrator
    We have Apache .conf files that need to be moved around when the account's owner/reseller or domain changes. I got this working using the pre/postmodifyacct hooks when you modify one account at a time, but noticed that same hook wasn't being called when you use the modify accounts en masse.

    Thanks DavidN, I'll do just that! :)
     
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