Paper Lantern for cPanel accounts is being retired this year. Find out more »
cPanel & WHM Version 102 has been released, and brings a slew of great updates. Take a look at what is included, and then upgrade today!

Package Modification Hook

Feature Importer shared this idea 10 years ago

As a Developer, I want a Package Modification Hook, so that intercept and regulate changes to packages

The actual telling of cPanel&WHM to change the limits would be handled via the APIs hooks intercept those requests. I'm having a difficult time thinking of a scenario off the top of my head so let's make up an absurd scenario - what if you had a new tech that wanted to change the amount of CPU accounts on a specific package could consume to 0.001% of the CPU this hook could intercept that and block it because it's a ridiculously low limit to set. It's a bit of an absurd scenario but I hope it conveys that APIs trigger changes hooks can intercept those changes (e.g. useful for communicating with billing systems) and even deny those changes.

This is a feature that has been migrated over from the cPanel Forums. All previous comments and discussions concerning this feature can be located at:

Replies (1)


We added pre and post hook events for account packages in version 62.

Replies have been locked on this page!