syslint

Well-Known Member
Verifed Vendor
Oct 9, 2006
271
7
168
India
cPanel Access Level
Root Administrator
Twitter
Hi,

Is there any way to add a script hook to WHM API1 . I was not able to find it in the developers documentation.
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,880
2,267
463
Hello,

The ability to hook into any WHM API 1 function is not currently possible. Per our documentation:

The Standardized Hooks system uses the following categories for hookable events:

Cpanel — The Cpanel category creates hookable events for cPanel API 1, cPanel API 2, or UAPI functions.
PkgAcct — The PkgAcct category's events occur during backup creation.
Passwd — The Passwd category's events occur when a WHM user changes a cPanel user's password.
Stats — The Stats category's events occur during statistics processing.
System — The System category's events occur during system updates or backups.
Whostmgr — The Whostmgr category's events occur during WHM functions.
We have an internal case open (HB-1394) to explore the possibility of such as feature, however there's currently no time frame on when that functionality will make it's way into the product. The current available hooks for Web Host Manager functions are listed at:

Guide to Standardized Hooks - Whostmgr Functions - Software Development Kit - cPanel Documentation

Feel free to open a feature request to add hook support for the specific actions you require via:

Submit A Feature Request

For instance, here's an example of a similar feature request we implemented:

Rearrange an Account hook

Thank you.