When you add a package, the system uses the default extension values in the default settings file. The system stores the values from subsequent edits in the package's file in the /var/cpanel/packages/ directory or in the account's userdata file.
All of the form variables that the template file uses must exist in the default settings file. WHM will disregard any variables that do not exist in the default settings file.
Extension and variable names
In the dog extension default settings file above, _NAME is the extension description that users will see when they view this extension's configuration in the WHM interface.
This variable only exists in the default file.
The system does not append this variable to the package file when a user saves the extension's configuration.
Ensure that all of the other variables in the default settings file begin with a string that relates to your extension. This convention avoids collisions with other variable names for other extensions, or with standard cPanel & WHM variables in the package and account files.
For example, use dog_species as the name of the species variable in the dog extension.
cPanel & WHM does not have built-in protections against package variable name collisions.
Package extension names and variable names are case-sensitive.
Package extensions allow third-party developers to add custom fields with non-standard variables to packages.
Users can add extensions to packages and select settings in WHM's Add a Package interface (WHM >> Home >> Packages >> Add a Package).
cPanel, WebHost Manager, and WHM are registered trademarks of cPanel, L.L.C. for providing its computer software that facilitates the management and configuration of Internet web servers. ®2020 All rights reserved.