The following hooks are provided for Client Area Interface related events.
Executes when the domain details page is loaded within the client area. This hook runs regardless of domain status, so be sure to check for the appropriate statuses if required.
| Variable | Type | Notes |
|---|---|---|
| domain | \WHMCS\Domain\Domain | A domain object representing the domain being rendered. |
No response supported
<?php
add_hook('ClientAreaDomainDetails', 1, function($vars) {
// Perform hook code here...
});Executes on rendering of the client area homepage.
| Variable | Type | Notes |
|---|---|---|
| No input parameters for this hook point. |
Return HTML to be output on the page.
<?php
add_hook('ClientAreaHomepage', 1, function($vars) {
// Perform hook code here...
});Executes prior to rendering the Client Area Homepage panels. This can be used to manipulate and add additional panels. For more information on working with Homepage Panels, and further examples, please see Client Area Homepage Panels
| Variable | Type | Notes |
|---|---|---|
| item | \WHMCS\View\Menu\Item |
No response supported
<?php
add_hook('ClientAreaHomepagePanels', 1, function($homePagePanels) {
$newPanel = $homePagePanels->addChild(
'unique-css-name',
array(
'name' => 'Friendly Name',
'label' => 'Translated Language String',
'icon' => 'fas fa-calendar-alt', //see http://fortawesome.github.io/Font-Awesome/icons/
'order' => '99',
'extras' => array(
'color' => 'pomegranate', //see Panel Accents in template styles.css
'btn-link' => 'https://www.whmcs.com',
'btn-text' => Lang::trans('go'),
'btn-icon' => 'fas fa-arrow-right',
),
)
);
// Repeat as needed to add enough children
$newPanel->addChild(
'unique-css-name-id1',
array(
'label' => 'Panel Row Text Goes Here',
'uri' => 'index.php?m=yourmodule',
'order' => 10,
)
);
});Executes when generating the navigation bars in the client area
| Variable | Type | Notes |
|---|---|---|
| No input parameters for this hook point. |
No response supported
<?php
add_hook('ClientAreaNavbars', 1, function($vars) {
// Perform hook code here...
});Executes on all pages of the client area and accepts a return of key/value pairs to be made available as additional Smarty template parameters. Input parameters include all currently defined template variables. The following is a list of template variables common to all pages. Additional variables will vary depending upon the page being rendered.
| Variable | Type | Notes |
|---|---|---|
| companyname | string | |
| logo | string | |
| systemurl | string | |
| charset | string | |
| pagetitle | string | |
| filename | string | |
| template | string | |
| language | string | |
| LANG | array | Active language translation strings |
| todaysdate | string | Human friendly formatted version of todays date |
| date_day | string | Current day of the month |
| date_month | string | Current month |
| date_year | string | Current year |
| WEB_ROOT | string | The web path to the WHMCS doc root |
| BASE_PATH_CSS | string | |
| BASE_PATH_JS | string | |
| BASE_PATH_FONTS | string | |
| BASE_PATH_IMG | string | |
| token | string | CSRF token value |
| servedOverSsl | bool | True if page was loaded via https:// |
A key/value pair array of additional template variables to define.
<?php
add_hook('ClientAreaPage', 1, function($vars) {
// Perform hook code here...
});Executes on the client area add contact page and accepts a return of key/value pairs to be made available as additional Smarty template parameters. Input parameters include all currently defined template variables. The following is a list of template variables common to all pages. Additional variables will vary depending upon the page being rendered.
| Variable | Type | Notes |
|---|---|---|
| companyname | string | |
| logo | string | |
| systemurl | string | |
| charset | string | |
| pagetitle | string | |
| filename | string | |
| template | string | |
| language | string | |
| LANG | array | Active language translation strings |
| todaysdate | string | Human friendly formatted version of todays date |
| date_day | string | Current day of the month |
| date_month | string | Current month |
| date_year | string | Current year |
| WEB_ROOT | string | The web path to the WHMCS doc root |
| BASE_PATH_CSS | string | |
| BASE_PATH_JS | string | |
| BASE_PATH_FONTS | string | |
| BASE_PATH_IMG | string | |
| token | string | CSRF token value |
| servedOverSsl | bool | True if page was loaded via https:// |
A key/value pair array of additional template variables to define.
<?php
add_hook('ClientAreaPageAddContact', 1, function($vars) {
// Perform hook code here...
});Executes on the client area add funds page and accepts a return of key/value pairs to be made available as additional Smarty template parameters. Input parameters include all currently defined template variables. The following is a list of template variables common to all pages. Additional variables will vary depending upon the page being rendered.
| Variable | Type | Notes |
|---|---|---|
| companyname | string | |
| logo | string | |
| systemurl | string | |
| charset | string | |
| pagetitle | string | |
| filename | string | |
| template | string | |
| language | string | |
| LANG | array | Active language translation strings |
| todaysdate | string | Human friendly formatted version of todays date |
| date_day | string | Current day of the month |
| date_month | string | Current month |
| date_year | string | Current year |
| WEB_ROOT | string | The web path to the WHMCS doc root |
| BASE_PATH_CSS | string | |
| BASE_PATH_JS | string | |
| BASE_PATH_FONTS | string | |
| BASE_PATH_IMG | string | |
| token | string | CSRF token value |
| servedOverSsl | bool | True if page was loaded via https:// |
A key/value pair array of additional template variables to define.
<?php
add_hook('ClientAreaPageAddFunds', 1, function($vars) {
// Perform hook code here...
});Executes on client pages created by an addon module and accepts a return of key/value pairs to be made available as additional Smarty template parameters. Input parameters include all currently defined template variables. The following is a list of template variables common to all pages. Additional variables will vary depending upon the page being rendered.
| Variable | Type | Notes |
|---|---|---|
| companyname | string | |
| logo | string | |
| systemurl | string | |
| charset | string | |
| pagetitle | string | |
| filename | string | |
| template | string | |
| language | string | |
| LANG | array | Active language translation strings |
| todaysdate | string | Human friendly formatted version of todays date |
| date_day | string | Current day of the month |
| date_month | string | Current month |
| date_year | string | Current year |
| WEB_ROOT | string | The web path to the WHMCS doc root |
| BASE_PATH_CSS | string | |
| BASE_PATH_JS | string | |
| BASE_PATH_FONTS | string | |
| BASE_PATH_IMG | string | |
| token | string | CSRF token value |
| servedOverSsl | bool | True if page was loaded via https:// |
A key/value pair array of additional template variables to define.
<?php
add_hook('ClientAreaPageAddonModule', 1, function($vars) {
// Perform hook code here...
});Executes on the client area affiliates page and accepts a return of key/value pairs to be made available as additional Smarty template parameters. Input parameters include all currently defined template variables. The following is a list of template variables common to all pages. Additional variables will vary depending upon the page being rendered.
| Variable | Type | Notes |
|---|---|---|
| companyname | string | |
| logo | string | |
| systemurl | string | |
| charset | string | |
| pagetitle | string | |
| filename | string | |
| template | string | |
| language | string | |
| LANG | array | Active language translation strings |
| todaysdate | string | Human friendly formatted version of todays date |
| date_day | string | Current day of the month |
| date_month | string | Current month |
| date_year | string | Current year |
| WEB_ROOT | string | The web path to the WHMCS doc root |
| BASE_PATH_CSS | string | |
| BASE_PATH_JS | string | |
| BASE_PATH_FONTS | string | |
| BASE_PATH_IMG | string | |
| token | string | CSRF token value |
| servedOverSsl | bool | True if page was loaded via https:// |
A key/value pair array of additional template variables to define.
<?php
add_hook('ClientAreaPageAffiliates', 1, function($vars) {
// Perform hook code here...
});Executes on the client area announcements page and accepts a return of key/value pairs to be made available as additional Smarty template parameters. Input parameters include all currently defined template variables. The following is a list of template variables common to all pages. Additional variables will vary depending upon the page being rendered.
| Variable | Type | Notes |
|---|---|---|
| companyname | string | |
| logo | string | |
| systemurl | string | |
| charset | string | |
| pagetitle | string | |
| filename | string | |
| template | string | |
| language | string | |
| LANG | array | Active language translation strings |
| todaysdate | string | Human friendly formatted version of todays date |
| date_day | string | Current day of the month |
| date_month | string | Current month |
| date_year | string | Current year |
| WEB_ROOT | string | The web path to the WHMCS doc root |
| BASE_PATH_CSS | string | |
| BASE_PATH_JS | string | |
| BASE_PATH_FONTS | string | |
| BASE_PATH_IMG | string | |
| token | string | CSRF token value |
| servedOverSsl | bool | True if page was loaded via https:// |
A key/value pair array of additional template variables to define.
<?php
add_hook('ClientAreaPageAnnouncements', 1, function($vars) {
// Perform hook code here...
});Executes on the banned user page and accepts a return of key/value pairs to be made available as additional Smarty template parameters. Input parameters include all currently defined template variables. The following is a list of template variables common to all pages. Additional variables will vary depending upon the page being rendered.
| Variable | Type | Notes |
|---|---|---|
| companyname | string | |
| logo | string | |
| systemurl | string | |
| charset | string | |
| pagetitle | string | |
| filename | string | |
| template | string | |
| language | string | |
| LANG | array | Active language translation strings |
| todaysdate | string | Human friendly formatted version of todays date |
| date_day | string | Current day of the month |
| date_month | string | Current month |
| date_year | string | Current year |
| WEB_ROOT | string | The web path to the WHMCS doc root |
| BASE_PATH_CSS | string | |
| BASE_PATH_JS | string | |
| BASE_PATH_FONTS | string | |
| BASE_PATH_IMG | string | |
| token | string | CSRF token value |
| servedOverSsl | bool | True if page was loaded via https:// |
A key/value pair array of additional template variables to define.
<?php
add_hook('ClientAreaPageBanned', 1, function($vars) {
// Perform hook code here...
});Executes on the client area bulk domain management page and accepts a return of key/value pairs to be made available as additional Smarty template parameters. Input parameters include all currently defined template variables. The following is a list of template variables common to all pages. Additional variables will vary depending upon the page being rendered.
| Variable | Type | Notes |
|---|---|---|
| companyname | string | |
| logo | string | |
| systemurl | string | |
| charset | string | |
| pagetitle | string | |
| filename | string | |
| template | string | |
| language | string | |
| LANG | array | Active language translation strings |
| todaysdate | string | Human friendly formatted version of todays date |
| date_day | string | Current day of the month |
| date_month | string | Current month |
| date_year | string | Current year |
| WEB_ROOT | string | The web path to the WHMCS doc root |
| BASE_PATH_CSS | string | |
| BASE_PATH_JS | string | |
| BASE_PATH_FONTS | string | |
| BASE_PATH_IMG | string | |
| token | string | CSRF token value |
| servedOverSsl | bool | True if page was loaded via https:// |
A key/value pair array of additional template variables to define.
<?php
add_hook('ClientAreaPageBulkDomainManagement', 1, function($vars) {
// Perform hook code here...
});Executes on the client area cancellation request page and accepts a return of key/value pairs to be made available as additional Smarty template parameters. Input parameters include all currently defined template variables. The following is a list of template variables common to all pages. Additional variables will vary depending upon the page being rendered.
| Variable | Type | Notes |
|---|---|---|
| companyname | string | |
| logo | string | |
| systemurl | string | |
| charset | string | |
| pagetitle | string | |
| filename | string | |
| template | string | |
| language | string | |
| LANG | array | Active language translation strings |
| todaysdate | string | Human friendly formatted version of todays date |
| date_day | string | Current day of the month |
| date_month | string | Current month |
| date_year | string | Current year |
| WEB_ROOT | string | The web path to the WHMCS doc root |
| BASE_PATH_CSS | string | |
| BASE_PATH_JS | string | |
| BASE_PATH_FONTS | string | |
| BASE_PATH_IMG | string | |
| token | string | CSRF token value |
| servedOverSsl | bool | True if page was loaded via https:// |
A key/value pair array of additional template variables to define.
<?php
add_hook('ClientAreaPageCancellation', 1, function($vars) {
// Perform hook code here...
});Executes on the shopping cart page and accepts a return of key/value pairs to be made available as additional Smarty template parameters. Input parameters include all currently defined template variables. The following is a list of template variables common to all pages. Additional variables will vary depending upon the page being rendered.
| Variable | Type | Notes |
|---|---|---|
| companyname | string | |
| logo | string | |
| systemurl | string | |
| charset | string | |
| pagetitle | string | |
| filename | string | |
| template | string | |
| language | string | |
| LANG | array | Active language translation strings |
| todaysdate | string | Human friendly formatted version of todays date |
| date_day | string | Current day of the month |
| date_month | string | Current month |
| date_year | string | Current year |
| WEB_ROOT | string | The web path to the WHMCS doc root |
| BASE_PATH_CSS | string | |
| BASE_PATH_JS | string | |
| BASE_PATH_FONTS | string | |
| BASE_PATH_IMG | string | |
| token | string | CSRF token value |
| servedOverSsl | bool | True if page was loaded via https:// |
A key/value pair array of additional template variables to define.
<?php
add_hook('ClientAreaPageCart', 1, function($vars) {
// Perform hook code here...
});Executes on the client area change password page and accepts a return of key/value pairs to be made available as additional Smarty template parameters. Input parameters include all currently defined template variables. The following is a list of template variables common to all pages. Additional variables will vary depending upon the page being rendered.
| Variable | Type | Notes |
|---|---|---|
| companyname | string | |
| logo | string | |
| systemurl | string | |
| charset | string | |
| pagetitle | string | |
| filename | string | |
| template | string | |
| language | string | |
| LANG | array | Active language translation strings |
| todaysdate | string | Human friendly formatted version of todays date |
| date_day | string | Current day of the month |
| date_month | string | Current month |
| date_year | string | Current year |
| WEB_ROOT | string | The web path to the WHMCS doc root |
| BASE_PATH_CSS | string | |
| BASE_PATH_JS | string | |
| BASE_PATH_FONTS | string | |
| BASE_PATH_IMG | string | |
| token | string | CSRF token value |
| servedOverSsl | bool | True if page was loaded via https:// |
A key/value pair array of additional template variables to define.
<?php
add_hook('ClientAreaPageChangePassword', 1, function($vars) {
// Perform hook code here...
});Executes on the client area SSL configuration page and accepts a return of key/value pairs to be made available as additional Smarty template parameters. Input parameters include all currently defined template variables. The following is a list of template variables common to all pages. Additional variables will vary depending upon the page being rendered.
| Variable | Type | Notes |
|---|---|---|
| companyname | string | |
| logo | string | |
| systemurl | string | |
| charset | string | |
| pagetitle | string | |
| filename | string | |
| template | string | |
| language | string | |
| LANG | array | Active language translation strings |
| todaysdate | string | Human friendly formatted version of todays date |
| date_day | string | Current day of the month |
| date_month | string | Current month |
| date_year | string | Current year |
| WEB_ROOT | string | The web path to the WHMCS doc root |
| BASE_PATH_CSS | string | |
| BASE_PATH_JS | string | |
| BASE_PATH_FONTS | string | |
| BASE_PATH_IMG | string | |
| token | string | CSRF token value |
| servedOverSsl | bool | True if page was loaded via https:// |
A key/value pair array of additional template variables to define.
<?php
add_hook('ClientAreaPageConfigureSSL', 1, function($vars) {
// Perform hook code here...
});Executes on the contact form page and accepts a return of key/value pairs to be made available as additional Smarty template parameters. Input parameters include all currently defined template variables. The following is a list of template variables common to all pages. Additional variables will vary depending upon the page being rendered.
| Variable | Type | Notes |
|---|---|---|
| companyname | string | |
| logo | string | |
| systemurl | string | |
| charset | string | |
| pagetitle | string | |
| filename | string | |
| template | string | |
| language | string | |
| LANG | array | Active language translation strings |
| todaysdate | string | Human friendly formatted version of todays date |
| date_day | string | Current day of the month |
| date_month | string | Current month |
| date_year | string | Current year |
| WEB_ROOT | string | The web path to the WHMCS doc root |
| BASE_PATH_CSS | string | |
| BASE_PATH_JS | string | |
| BASE_PATH_FONTS | string | |
| BASE_PATH_IMG | string | |
| token | string | CSRF token value |
| servedOverSsl | bool | True if page was loaded via https:// |
A key/value pair array of additional template variables to define.
<?php
add_hook('ClientAreaPageContact', 1, function($vars) {
// Perform hook code here...
});Executes on the client area contacts/sub-accounts management page and accepts a return of key/value pairs to be made available as additional Smarty template parameters. Input parameters include all currently defined template variables. The following is a list of template variables common to all pages. Additional variables will vary depending upon the page being rendered.
| Variable | Type | Notes |
|---|---|---|
| companyname | string | |
| logo | string | |
| systemurl | string | |
| charset | string | |
| pagetitle | string | |
| filename | string | |
| template | string | |
| language | string | |
| LANG | array | Active language translation strings |
| todaysdate | string | Human friendly formatted version of todays date |
| date_day | string | Current day of the month |
| date_month | string | Current month |
| date_year | string | Current year |
| WEB_ROOT | string | The web path to the WHMCS doc root |
| BASE_PATH_CSS | string | |
| BASE_PATH_JS | string | |
| BASE_PATH_FONTS | string | |
| BASE_PATH_IMG | string | |
| token | string | CSRF token value |
| servedOverSsl | bool | True if page was loaded via https:// |
A key/value pair array of additional template variables to define.
<?php
add_hook('ClientAreaPageContacts', 1, function($vars) {
// Perform hook code here...
});Executes on the client area manage credit card page and accepts a return of key/value pairs to be made available as additional Smarty template parameters. Input parameters include all currently defined template variables. The following is a list of template variables common to all pages. Additional variables will vary depending upon the page being rendered.
| Variable | Type | Notes |
|---|---|---|
| companyname | string | |
| logo | string | |
| systemurl | string | |
| charset | string | |
| pagetitle | string | |
| filename | string | |
| template | string | |
| language | string | |
| LANG | array | Active language translation strings |
| todaysdate | string | Human friendly formatted version of todays date |
| date_day | string | Current day of the month |
| date_month | string | Current month |
| date_year | string | Current year |
| WEB_ROOT | string | The web path to the WHMCS doc root |
| BASE_PATH_CSS | string | |
| BASE_PATH_JS | string | |
| BASE_PATH_FONTS | string | |
| BASE_PATH_IMG | string | |
| token | string | CSRF token value |
| servedOverSsl | bool | True if page was loaded via https:// |
A key/value pair array of additional template variables to define.
<?php
add_hook('ClientAreaPageCreditCard', 1, function($vars) {
// Perform hook code here...
});Executes on the credit card payment page and accepts a return of key/value pairs to be made available as additional Smarty template parameters. Input parameters include all currently defined template variables. The following is a list of template variables common to all pages. Additional variables will vary depending upon the page being rendered.
| Variable | Type | Notes |
|---|---|---|
| companyname | string | |
| logo | string | |
| systemurl | string | |
| charset | string | |
| pagetitle | string | |
| filename | string | |
| template | string | |
| language | string | |
| LANG | array | Active language translation strings |
| todaysdate | string | Human friendly formatted version of todays date |
| date_day | string | Current day of the month |
| date_month | string | Current month |
| date_year | string | Current year |
| WEB_ROOT | string | The web path to the WHMCS doc root |
| BASE_PATH_CSS | string | |
| BASE_PATH_JS | string | |
| BASE_PATH_FONTS | string | |
| BASE_PATH_IMG | string | |
| token | string | CSRF token value |
| servedOverSsl | bool | True if page was loaded via https:// |
A key/value pair array of additional template variables to define.
<?php
add_hook('ClientAreaPageCreditCardCheckout', 1, function($vars) {
// Perform hook code here...
});Executes on the client area domain add-ons page and accepts a return of key/value pairs to be made available as additional Smarty template parameters. Input parameters include all currently defined template variables. The following is a list of template variables common to all pages. Additional variables will vary depending upon the page being rendered.
| Variable | Type | Notes |
|---|---|---|
| companyname | string | |
| logo | string | |
| systemurl | string | |
| charset | string | |
| pagetitle | string | |
| filename | string | |
| template | string | |
| language | string | |
| LANG | array | Active language translation strings |
| todaysdate | string | Human friendly formatted version of todays date |
| date_day | string | Current day of the month |
| date_month | string | Current month |
| date_year | string | Current year |
| WEB_ROOT | string | The web path to the WHMCS doc root |
| BASE_PATH_CSS | string | |
| BASE_PATH_JS | string | |
| BASE_PATH_FONTS | string | |
| BASE_PATH_IMG | string | |
| token | string | CSRF token value |
| servedOverSsl | bool | True if page was loaded via https:// |
A key/value pair array of additional template variables to define.
<?php
add_hook('ClientAreaPageDomainAddons', 1, function($vars) {
// Perform hook code here...
});Executes on the client area domain WHOIS contact information page and accepts a return of key/value pairs to be made available as additional Smarty template parameters. Input parameters include all currently defined template variables. The following is a list of template variables common to all pages. Additional variables will vary depending upon the page being rendered.
| Variable | Type | Notes |
|---|---|---|
| companyname | string | |
| logo | string | |
| systemurl | string | |
| charset | string | |
| pagetitle | string | |
| filename | string | |
| template | string | |
| language | string | |
| LANG | array | Active language translation strings |
| todaysdate | string | Human friendly formatted version of todays date |
| date_day | string | Current day of the month |
| date_month | string | Current month |
| date_year | string | Current year |
| WEB_ROOT | string | The web path to the WHMCS doc root |
| BASE_PATH_CSS | string | |
| BASE_PATH_JS | string | |
| BASE_PATH_FONTS | string | |
| BASE_PATH_IMG | string | |
| token | string | CSRF token value |
| servedOverSsl | bool | True if page was loaded via https:// |
A key/value pair array of additional template variables to define.
<?php
add_hook('ClientAreaPageDomainContacts', 1, function($vars) {
// Perform hook code here...
});Executes on the client area domain DNS Host Record management page and accepts a return of key/value pairs to be made available as additional Smarty template parameters. Input parameters include all currently defined template variables. The following is a list of template variables common to all pages. Additional variables will vary depending upon the page being rendered.
| Variable | Type | Notes |
|---|---|---|
| companyname | string | |
| logo | string | |
| systemurl | string | |
| charset | string | |
| pagetitle | string | |
| filename | string | |
| template | string | |
| language | string | |
| LANG | array | Active language translation strings |
| todaysdate | string | Human friendly formatted version of todays date |
| date_day | string | Current day of the month |
| date_month | string | Current month |
| date_year | string | Current year |
| WEB_ROOT | string | The web path to the WHMCS doc root |
| BASE_PATH_CSS | string | |
| BASE_PATH_JS | string | |
| BASE_PATH_FONTS | string | |
| BASE_PATH_IMG | string | |
| token | string | CSRF token value |
| servedOverSsl | bool | True if page was loaded via https:// |
A key/value pair array of additional template variables to define.
<?php
add_hook('ClientAreaPageDomainDNSManagement', 1, function($vars) {
// Perform hook code here...
});Executes on the client area domain overview page and accepts a return of key/value pairs to be made available as additional Smarty template parameters. Input parameters include all currently defined template variables. The following is a list of template variables common to all pages. Additional variables will vary depending upon the page being rendered.
| Variable | Type | Notes |
|---|---|---|
| companyname | string | |
| logo | string | |
| systemurl | string | |
| charset | string | |
| pagetitle | string | |
| filename | string | |
| template | string | |
| language | string | |
| LANG | array | Active language translation strings |
| todaysdate | string | Human friendly formatted version of todays date |
| date_day | string | Current day of the month |
| date_month | string | Current month |
| date_year | string | Current year |
| WEB_ROOT | string | The web path to the WHMCS doc root |
| BASE_PATH_CSS | string | |
| BASE_PATH_JS | string | |
| BASE_PATH_FONTS | string | |
| BASE_PATH_IMG | string | |
| token | string | CSRF token value |
| servedOverSsl | bool | True if page was loaded via https:// |
A key/value pair array of additional template variables to define.
<?php
add_hook('ClientAreaPageDomainDetails', 1, function($vars) {
// Perform hook code here...
});Executes on the client area domain EPP Code page and accepts a return of key/value pairs to be made available as additional Smarty template parameters. Input parameters include all currently defined template variables. The following is a list of template variables common to all pages. Additional variables will vary depending upon the page being rendered.
| Variable | Type | Notes |
|---|---|---|
| companyname | string | |
| logo | string | |
| systemurl | string | |
| charset | string | |
| pagetitle | string | |
| filename | string | |
| template | string | |
| language | string | |
| LANG | array | Active language translation strings |
| todaysdate | string | Human friendly formatted version of todays date |
| date_day | string | Current day of the month |
| date_month | string | Current month |
| date_year | string | Current year |
| WEB_ROOT | string | The web path to the WHMCS doc root |
| BASE_PATH_CSS | string | |
| BASE_PATH_JS | string | |
| BASE_PATH_FONTS | string | |
| BASE_PATH_IMG | string | |
| token | string | CSRF token value |
| servedOverSsl | bool | True if page was loaded via https:// |
A key/value pair array of additional template variables to define.
<?php
add_hook('ClientAreaPageDomainEPPCode', 1, function($vars) {
// Perform hook code here...
});Executes on the client area domain Email Forwarding rules page and accepts a return of key/value pairs to be made available as additional Smarty template parameters. Input parameters include all currently defined template variables. The following is a list of template variables common to all pages. Additional variables will vary depending upon the page being rendered.
| Variable | Type | Notes |
|---|---|---|
| companyname | string | |
| logo | string | |
| systemurl | string | |
| charset | string | |
| pagetitle | string | |
| filename | string | |
| template | string | |
| language | string | |
| LANG | array | Active language translation strings |
| todaysdate | string | Human friendly formatted version of todays date |
| date_day | string | Current day of the month |
| date_month | string | Current month |
| date_year | string | Current year |
| WEB_ROOT | string | The web path to the WHMCS doc root |
| BASE_PATH_CSS | string | |
| BASE_PATH_JS | string | |
| BASE_PATH_FONTS | string | |
| BASE_PATH_IMG | string | |
| token | string | CSRF token value |
| servedOverSsl | bool | True if page was loaded via https:// |
A key/value pair array of additional template variables to define.
<?php
add_hook('ClientAreaPageDomainEmailForwarding', 1, function($vars) {
// Perform hook code here...
});Executes on the client area domain Register Private Nameservers page and accepts a return of key/value pairs to be made available as additional Smarty template parameters. Input parameters include all currently defined template variables. The following is a list of template variables common to all pages. Additional variables will vary depending upon the page being rendered.
| Variable | Type | Notes |
|---|---|---|
| companyname | string | |
| logo | string | |
| systemurl | string | |
| charset | string | |
| pagetitle | string | |
| filename | string | |
| template | string | |
| language | string | |
| LANG | array | Active language translation strings |
| todaysdate | string | Human friendly formatted version of todays date |
| date_day | string | Current day of the month |
| date_month | string | Current month |
| date_year | string | Current year |
| WEB_ROOT | string | The web path to the WHMCS doc root |
| BASE_PATH_CSS | string | |
| BASE_PATH_JS | string | |
| BASE_PATH_FONTS | string | |
| BASE_PATH_IMG | string | |
| token | string | CSRF token value |
| servedOverSsl | bool | True if page was loaded via https:// |
A key/value pair array of additional template variables to define.
<?php
add_hook('ClientAreaPageDomainRegisterNameservers', 1, function($vars) {
// Perform hook code here...
});Executes on the client area domains list page and accepts a return of key/value pairs to be made available as additional Smarty template parameters. Input parameters include all currently defined template variables. The following is a list of template variables common to all pages. Additional variables will vary depending upon the page being rendered.
| Variable | Type | Notes |
|---|---|---|
| companyname | string | |
| logo | string | |
| systemurl | string | |
| charset | string | |
| pagetitle | string | |
| filename | string | |
| template | string | |
| language | string | |
| LANG | array | Active language translation strings |
| todaysdate | string | Human friendly formatted version of todays date |
| date_day | string | Current day of the month |
| date_month | string | Current month |
| date_year | string | Current year |
| WEB_ROOT | string | The web path to the WHMCS doc root |
| BASE_PATH_CSS | string | |
| BASE_PATH_JS | string | |
| BASE_PATH_FONTS | string | |
| BASE_PATH_IMG | string | |
| token | string | CSRF token value |
| servedOverSsl | bool | True if page was loaded via https:// |
A key/value pair array of additional template variables to define.
<?php
add_hook('ClientAreaPageDomains', 1, function($vars) {
// Perform hook code here...
});Executes on the client area downloads page and accepts a return of key/value pairs to be made available as additional Smarty template parameters. Input parameters include all currently defined template variables. The following is a list of template variables common to all pages. Additional variables will vary depending upon the page being rendered.
| Variable | Type | Notes |
|---|---|---|
| companyname | string | |
| logo | string | |
| systemurl | string | |
| charset | string | |
| pagetitle | string | |
| filename | string | |
| template | string | |
| language | string | |
| LANG | array | Active language translation strings |
| todaysdate | string | Human friendly formatted version of todays date |
| date_day | string | Current day of the month |
| date_month | string | Current month |
| date_year | string | Current year |
| WEB_ROOT | string | The web path to the WHMCS doc root |
| BASE_PATH_CSS | string | |
| BASE_PATH_JS | string | |
| BASE_PATH_FONTS | string | |
| BASE_PATH_IMG | string | |
| token | string | CSRF token value |
| servedOverSsl | bool | True if page was loaded via https:// |
A key/value pair array of additional template variables to define.
<?php
add_hook('ClientAreaPageDownloads', 1, function($vars) {
// Perform hook code here...
});Executes on the client area email history page and accepts a return of key/value pairs to be made available as additional Smarty template parameters. Input parameters include all currently defined template variables. The following is a list of template variables common to all pages. Additional variables will vary depending upon the page being rendered.
| Variable | Type | Notes |
|---|---|---|
| companyname | string | |
| logo | string | |
| systemurl | string | |
| charset | string | |
| pagetitle | string | |
| filename | string | |
| template | string | |
| language | string | |
| LANG | array | Active language translation strings |
| todaysdate | string | Human friendly formatted version of todays date |
| date_day | string | Current day of the month |
| date_month | string | Current month |
| date_year | string | Current year |
| WEB_ROOT | string | The web path to the WHMCS doc root |
| BASE_PATH_CSS | string | |
| BASE_PATH_JS | string | |
| BASE_PATH_FONTS | string | |
| BASE_PATH_IMG | string | |
| token | string | CSRF token value |
| servedOverSsl | bool | True if page was loaded via https:// |
A key/value pair array of additional template variables to define.
<?php
add_hook('ClientAreaPageEmails', 1, function($vars) {
// Perform hook code here...
});Executes on the client area homepage and accepts a return of key/value pairs to be made available as additional Smarty template parameters. Input parameters include all currently defined template variables. The following is a list of template variables common to all pages. Additional variables will vary depending upon the page being rendered.
| Variable | Type | Notes |
|---|---|---|
| companyname | string | |
| logo | string | |
| systemurl | string | |
| charset | string | |
| pagetitle | string | |
| filename | string | |
| template | string | |
| language | string | |
| LANG | array | Active language translation strings |
| todaysdate | string | Human friendly formatted version of todays date |
| date_day | string | Current day of the month |
| date_month | string | Current month |
| date_year | string | Current year |
| WEB_ROOT | string | The web path to the WHMCS doc root |
| BASE_PATH_CSS | string | |
| BASE_PATH_JS | string | |
| BASE_PATH_FONTS | string | |
| BASE_PATH_IMG | string | |
| token | string | CSRF token value |
| servedOverSsl | bool | True if page was loaded via https:// |
A key/value pair array of additional template variables to define.
<?php
add_hook('ClientAreaPageHome', 1, function($vars) {
// Perform hook code here...
});Executes on the client area invoices page and accepts a return of key/value pairs to be made available as additional Smarty template parameters. Input parameters include all currently defined template variables. The following is a list of template variables common to all pages. Additional variables will vary depending upon the page being rendered.
| Variable | Type | Notes |
|---|---|---|
| companyname | string | |
| logo | string | |
| systemurl | string | |
| charset | string | |
| pagetitle | string | |
| filename | string | |
| template | string | |
| language | string | |
| LANG | array | Active language translation strings |
| todaysdate | string | Human friendly formatted version of todays date |
| date_day | string | Current day of the month |
| date_month | string | Current month |
| date_year | string | Current year |
| WEB_ROOT | string | The web path to the WHMCS doc root |
| BASE_PATH_CSS | string | |
| BASE_PATH_JS | string | |
| BASE_PATH_FONTS | string | |
| BASE_PATH_IMG | string | |
| token | string | CSRF token value |
| servedOverSsl | bool | True if page was loaded via https:// |
A key/value pair array of additional template variables to define.
<?php
add_hook('ClientAreaPageInvoices', 1, function($vars) {
// Perform hook code here...
});Executes on the client area knowledgebase page and accepts a return of key/value pairs to be made available as additional Smarty template parameters. Input parameters include all currently defined template variables. The following is a list of template variables common to all pages. Additional variables will vary depending upon the page being rendered.
| Variable | Type | Notes |
|---|---|---|
| companyname | string | |
| logo | string | |
| systemurl | string | |
| charset | string | |
| pagetitle | string | |
| filename | string | |
| template | string | |
| language | string | |
| LANG | array | Active language translation strings |
| todaysdate | string | Human friendly formatted version of todays date |
| date_day | string | Current day of the month |
| date_month | string | Current month |
| date_year | string | Current year |
| WEB_ROOT | string | The web path to the WHMCS doc root |
| BASE_PATH_CSS | string | |
| BASE_PATH_JS | string | |
| BASE_PATH_FONTS | string | |
| BASE_PATH_IMG | string | |
| token | string | CSRF token value |
| servedOverSsl | bool | True if page was loaded via https:// |
A key/value pair array of additional template variables to define.
<?php
add_hook('ClientAreaPageKnowledgebase', 1, function($vars) {
// Perform hook code here...
});Executes on the login page of the client area. The following is a list of template variables common to all pages. Additional variables will vary depending upon the page being rendered.
| Variable | Type | Notes |
|---|---|---|
| companyname | string | |
| logo | string | |
| systemurl | string | |
| charset | string | |
| pagetitle | string | |
| filename | string | |
| template | string | |
| language | string | |
| LANG | array | Active language translation strings |
| todaysdate | string | Human friendly formatted version of todays date |
| date_day | string | Current day of the month |
| date_month | string | Current month |
| date_year | string | Current year |
| WEB_ROOT | string | The web path to the WHMCS doc root |
| BASE_PATH_CSS | string | |
| BASE_PATH_JS | string | |
| BASE_PATH_FONTS | string | |
| BASE_PATH_IMG | string | |
| token | string | CSRF token value |
| servedOverSsl | bool | True if page was loaded via https:// |
A key/value pair array of additional template variables to define.
<?php
add_hook('ClientAreaPageLogin', 1, function($vars) {
$extraVariables = [
'newVariable1' => 'thisValue',
'newVariable2' => 'thatValue',
];
return $extraVariables;
});Executes on the client area logout page and accepts a return of key/value pairs to be made available as additional Smarty template parameters. Input parameters include all currently defined template variables. The following is a list of template variables common to all pages. Additional variables will vary depending upon the page being rendered.
| Variable | Type | Notes |
|---|---|---|
| companyname | string | |
| logo | string | |
| systemurl | string | |
| charset | string | |
| pagetitle | string | |
| filename | string | |
| template | string | |
| language | string | |
| LANG | array | Active language translation strings |
| todaysdate | string | Human friendly formatted version of todays date |
| date_day | string | Current day of the month |
| date_month | string | Current month |
| date_year | string | Current year |
| WEB_ROOT | string | The web path to the WHMCS doc root |
| BASE_PATH_CSS | string | |
| BASE_PATH_JS | string | |
| BASE_PATH_FONTS | string | |
| BASE_PATH_IMG | string | |
| token | string | CSRF token value |
| servedOverSsl | bool | True if page was loaded via https:// |
A key/value pair array of additional template variables to define.
<?php
add_hook('ClientAreaPageLogout', 1, function($vars) {
// Perform hook code here...
});Executes on the client area mass invoice payment page and accepts a return of key/value pairs to be made available as additional Smarty template parameters. Input parameters include all currently defined template variables. The following is a list of template variables common to all pages. Additional variables will vary depending upon the page being rendered.
| Variable | Type | Notes |
|---|---|---|
| companyname | string | |
| logo | string | |
| systemurl | string | |
| charset | string | |
| pagetitle | string | |
| filename | string | |
| template | string | |
| language | string | |
| LANG | array | Active language translation strings |
| todaysdate | string | Human friendly formatted version of todays date |
| date_day | string | Current day of the month |
| date_month | string | Current month |
| date_year | string | Current year |
| WEB_ROOT | string | The web path to the WHMCS doc root |
| BASE_PATH_CSS | string | |
| BASE_PATH_JS | string | |
| BASE_PATH_FONTS | string | |
| BASE_PATH_IMG | string | |
| token | string | CSRF token value |
| servedOverSsl | bool | True if page was loaded via https:// |
A key/value pair array of additional template variables to define.
<?php
add_hook('ClientAreaPageMassPay', 1, function($vars) {
// Perform hook code here...
});Executes on the client area network issues page and accepts a return of key/value pairs to be made available as additional Smarty template parameters. Input parameters include all currently defined template variables. The following is a list of template variables common to all pages. Additional variables will vary depending upon the page being rendered.
| Variable | Type | Notes |
|---|---|---|
| companyname | string | |
| logo | string | |
| systemurl | string | |
| charset | string | |
| pagetitle | string | |
| filename | string | |
| template | string | |
| language | string | |
| LANG | array | Active language translation strings |
| todaysdate | string | Human friendly formatted version of todays date |
| date_day | string | Current day of the month |
| date_month | string | Current month |
| date_year | string | Current year |
| WEB_ROOT | string | The web path to the WHMCS doc root |
| BASE_PATH_CSS | string | |
| BASE_PATH_JS | string | |
| BASE_PATH_FONTS | string | |
| BASE_PATH_IMG | string | |
| token | string | CSRF token value |
| servedOverSsl | bool | True if page was loaded via https:// |
A key/value pair array of additional template variables to define.
<?php
add_hook('ClientAreaPageNetworkIssues', 1, function($vars) {
// Perform hook code here...
});Executes on the client area password reset page and accepts a return of key/value pairs to be made available as additional Smarty template parameters. Input parameters include all currently defined template variables. The following is a list of template variables common to all pages. Additional variables will vary depending upon the page being rendered.
| Variable | Type | Notes |
|---|---|---|
| companyname | string | |
| logo | string | |
| systemurl | string | |
| charset | string | |
| pagetitle | string | |
| filename | string | |
| template | string | |
| language | string | |
| LANG | array | Active language translation strings |
| todaysdate | string | Human friendly formatted version of todays date |
| date_day | string | Current day of the month |
| date_month | string | Current month |
| date_year | string | Current year |
| WEB_ROOT | string | The web path to the WHMCS doc root |
| BASE_PATH_CSS | string | |
| BASE_PATH_JS | string | |
| BASE_PATH_FONTS | string | |
| BASE_PATH_IMG | string | |
| token | string | CSRF token value |
| servedOverSsl | bool | True if page was loaded via https:// |
A key/value pair array of additional template variables to define.
<?php
add_hook('ClientAreaPagePasswordReset', 1, function($vars) {
// Perform hook code here...
});Executes on the client area product overview page and accepts a return of key/value pairs to be made available as additional Smarty template parameters. Input parameters include all currently defined template variables. The following is a list of template variables common to all pages. Additional variables will vary depending upon the page being rendered.
| Variable | Type | Notes |
|---|---|---|
| companyname | string | |
| logo | string | |
| systemurl | string | |
| charset | string | |
| pagetitle | string | |
| filename | string | |
| template | string | |
| language | string | |
| LANG | array | Active language translation strings |
| todaysdate | string | Human friendly formatted version of todays date |
| date_day | string | Current day of the month |
| date_month | string | Current month |
| date_year | string | Current year |
| WEB_ROOT | string | The web path to the WHMCS doc root |
| BASE_PATH_CSS | string | |
| BASE_PATH_JS | string | |
| BASE_PATH_FONTS | string | |
| BASE_PATH_IMG | string | |
| token | string | CSRF token value |
| servedOverSsl | bool | True if page was loaded via https:// |
A key/value pair array of additional template variables to define.
<?php
add_hook('ClientAreaPageProductDetails', 1, function($vars) {
// Perform hook code here...
});Executes on the client area product and services list page and accepts a return of key/value pairs to be made available as additional Smarty template parameters. Input parameters include all currently defined template variables. The following is a list of template variables common to all pages. Additional variables will vary depending upon the page being rendered.
| Variable | Type | Notes |
|---|---|---|
| companyname | string | |
| logo | string | |
| systemurl | string | |
| charset | string | |
| pagetitle | string | |
| filename | string | |
| template | string | |
| language | string | |
| LANG | array | Active language translation strings |
| todaysdate | string | Human friendly formatted version of todays date |
| date_day | string | Current day of the month |
| date_month | string | Current month |
| date_year | string | Current year |
| WEB_ROOT | string | The web path to the WHMCS doc root |
| BASE_PATH_CSS | string | |
| BASE_PATH_JS | string | |
| BASE_PATH_FONTS | string | |
| BASE_PATH_IMG | string | |
| token | string | CSRF token value |
| servedOverSsl | bool | True if page was loaded via https:// |
A key/value pair array of additional template variables to define.
<?php
add_hook('ClientAreaPageProductsServices', 1, function($vars) {
// Perform hook code here...
});Executes on the client area profile page and accepts a return of key/value pairs to be made available as additional Smarty template parameters. Input parameters include all currently defined template variables. The following is a list of template variables common to all pages. Additional variables will vary depending upon the page being rendered.
| Variable | Type | Notes |
|---|---|---|
| companyname | string | |
| logo | string | |
| systemurl | string | |
| charset | string | |
| pagetitle | string | |
| filename | string | |
| template | string | |
| language | string | |
| LANG | array | Active language translation strings |
| todaysdate | string | Human friendly formatted version of todays date |
| date_day | string | Current day of the month |
| date_month | string | Current month |
| date_year | string | Current year |
| WEB_ROOT | string | The web path to the WHMCS doc root |
| BASE_PATH_CSS | string | |
| BASE_PATH_JS | string | |
| BASE_PATH_FONTS | string | |
| BASE_PATH_IMG | string | |
| token | string | CSRF token value |
| servedOverSsl | bool | True if page was loaded via https:// |
A key/value pair array of additional template variables to define.
<?php
add_hook('ClientAreaPageProfile', 1, function($vars) {
// Perform hook code here...
});Executes on the client area quotes page and accepts a return of key/value pairs to be made available as additional Smarty template parameters. Input parameters include all currently defined template variables. The following is a list of template variables common to all pages. Additional variables will vary depending upon the page being rendered.
| Variable | Type | Notes |
|---|---|---|
| companyname | string | |
| logo | string | |
| systemurl | string | |
| charset | string | |
| pagetitle | string | |
| filename | string | |
| template | string | |
| language | string | |
| LANG | array | Active language translation strings |
| todaysdate | string | Human friendly formatted version of todays date |
| date_day | string | Current day of the month |
| date_month | string | Current month |
| date_year | string | Current year |
| WEB_ROOT | string | The web path to the WHMCS doc root |
| BASE_PATH_CSS | string | |
| BASE_PATH_JS | string | |
| BASE_PATH_FONTS | string | |
| BASE_PATH_IMG | string | |
| token | string | CSRF token value |
| servedOverSsl | bool | True if page was loaded via https:// |
A key/value pair array of additional template variables to define.
<?php
add_hook('ClientAreaPageQuotes', 1, function($vars) {
// Perform hook code here...
});Executes on the client registration page and accepts a return of key/value pairs to be made available as additional Smarty template parameters. Input parameters include all currently defined template variables. The following is a list of template variables common to all pages. Additional variables will vary depending upon the page being rendered.
| Variable | Type | Notes |
|---|---|---|
| companyname | string | |
| logo | string | |
| systemurl | string | |
| charset | string | |
| pagetitle | string | |
| filename | string | |
| template | string | |
| language | string | |
| LANG | array | Active language translation strings |
| todaysdate | string | Human friendly formatted version of todays date |
| date_day | string | Current day of the month |
| date_month | string | Current month |
| date_year | string | Current year |
| WEB_ROOT | string | The web path to the WHMCS doc root |
| BASE_PATH_CSS | string | |
| BASE_PATH_JS | string | |
| BASE_PATH_FONTS | string | |
| BASE_PATH_IMG | string | |
| token | string | CSRF token value |
| servedOverSsl | bool | True if page was loaded via https:// |
A key/value pair array of additional template variables to define.
<?php
add_hook('ClientAreaPageRegister', 1, function($vars) {
// Perform hook code here...
});Executes on the client area security page and accepts a return of key/value pairs to be made available as additional Smarty template parameters. Input parameters include all currently defined template variables. The following is a list of template variables common to all pages. Additional variables will vary depending upon the page being rendered.
| Variable | Type | Notes |
|---|---|---|
| companyname | string | |
| logo | string | |
| systemurl | string | |
| charset | string | |
| pagetitle | string | |
| filename | string | |
| template | string | |
| language | string | |
| LANG | array | Active language translation strings |
| todaysdate | string | Human friendly formatted version of todays date |
| date_day | string | Current day of the month |
| date_month | string | Current month |
| date_year | string | Current year |
| WEB_ROOT | string | The web path to the WHMCS doc root |
| BASE_PATH_CSS | string | |
| BASE_PATH_JS | string | |
| BASE_PATH_FONTS | string | |
| BASE_PATH_IMG | string | |
| token | string | CSRF token value |
| servedOverSsl | bool | True if page was loaded via https:// |
A key/value pair array of additional template variables to define.
<?php
add_hook('ClientAreaPageSecurity', 1, function($vars) {
// Perform hook code here...
});Executes on the client area server status page and accepts a return of key/value pairs to be made available as additional Smarty template parameters. Input parameters include all currently defined template variables. The following is a list of template variables common to all pages. Additional variables will vary depending upon the page being rendered.
| Variable | Type | Notes |
|---|---|---|
| companyname | string | |
| logo | string | |
| systemurl | string | |
| charset | string | |
| pagetitle | string | |
| filename | string | |
| template | string | |
| language | string | |
| LANG | array | Active language translation strings |
| todaysdate | string | Human friendly formatted version of todays date |
| date_day | string | Current day of the month |
| date_month | string | Current month |
| date_year | string | Current year |
| WEB_ROOT | string | The web path to the WHMCS doc root |
| BASE_PATH_CSS | string | |
| BASE_PATH_JS | string | |
| BASE_PATH_FONTS | string | |
| BASE_PATH_IMG | string | |
| token | string | CSRF token value |
| servedOverSsl | bool | True if page was loaded via https:// |
A key/value pair array of additional template variables to define.
<?php
add_hook('ClientAreaPageServerStatus', 1, function($vars) {
// Perform hook code here...
});Executes on the email unsubscribe page and accepts a return of key/value pairs to be made available as additional Smarty template parameters. Input parameters include all currently defined template variables. The following is a list of template variables common to all pages. Additional variables will vary depending upon the page being rendered.
| Variable | Type | Notes |
|---|---|---|
| companyname | string | |
| logo | string | |
| systemurl | string | |
| charset | string | |
| pagetitle | string | |
| filename | string | |
| template | string | |
| language | string | |
| LANG | array | Active language translation strings |
| todaysdate | string | Human friendly formatted version of todays date |
| date_day | string | Current day of the month |
| date_month | string | Current month |
| date_year | string | Current year |
| WEB_ROOT | string | The web path to the WHMCS doc root |
| BASE_PATH_CSS | string | |
| BASE_PATH_JS | string | |
| BASE_PATH_FONTS | string | |
| BASE_PATH_IMG | string | |
| token | string | CSRF token value |
| servedOverSsl | bool | True if page was loaded via https:// |
A key/value pair array of additional template variables to define.
<?php
add_hook('ClientAreaPageUnsubscribe', 1, function($vars) {
// Perform hook code here...
});Executes on the client area upgrade/downgrade page and accepts a return of key/value pairs to be made available as additional Smarty template parameters. Input parameters include all currently defined template variables. The following is a list of template variables common to all pages. Additional variables will vary depending upon the page being rendered.
| Variable | Type | Notes |
|---|---|---|
| companyname | string | |
| logo | string | |
| systemurl | string | |
| charset | string | |
| pagetitle | string | |
| filename | string | |
| template | string | |
| language | string | |
| LANG | array | Active language translation strings |
| todaysdate | string | Human friendly formatted version of todays date |
| date_day | string | Current day of the month |
| date_month | string | Current month |
| date_year | string | Current year |
| WEB_ROOT | string | The web path to the WHMCS doc root |
| BASE_PATH_CSS | string | |
| BASE_PATH_JS | string | |
| BASE_PATH_FONTS | string | |
| BASE_PATH_IMG | string | |
| token | string | CSRF token value |
| servedOverSsl | bool | True if page was loaded via https:// |
A key/value pair array of additional template variables to define.
<?php
add_hook('ClientAreaPageUpgrade', 1, function($vars) {
// Perform hook code here...
});Executes on the client area view email page and accepts a return of key/value pairs to be made available as additional Smarty template parameters. Input parameters include all currently defined template variables. The following is a list of template variables common to all pages. Additional variables will vary depending upon the page being rendered.
| Variable | Type | Notes |
|---|---|---|
| companyname | string | |
| logo | string | |
| systemurl | string | |
| charset | string | |
| pagetitle | string | |
| filename | string | |
| template | string | |
| language | string | |
| LANG | array | Active language translation strings |
| todaysdate | string | Human friendly formatted version of todays date |
| date_day | string | Current day of the month |
| date_month | string | Current month |
| date_year | string | Current year |
| WEB_ROOT | string | The web path to the WHMCS doc root |
| BASE_PATH_CSS | string | |
| BASE_PATH_JS | string | |
| BASE_PATH_FONTS | string | |
| BASE_PATH_IMG | string | |
| token | string | CSRF token value |
| servedOverSsl | bool | True if page was loaded via https:// |
A key/value pair array of additional template variables to define.
<?php
add_hook('ClientAreaPageViewEmail', 1, function($vars) {
// Perform hook code here...
});Executes on the client area view invoice page and accepts a return of key/value pairs to be made available as additional Smarty template parameters. Input parameters include all currently defined template variables. The following is a list of template variables common to all pages. Additional variables will vary depending upon the page being rendered.
| Variable | Type | Notes |
|---|---|---|
| companyname | string | |
| logo | string | |
| systemurl | string | |
| charset | string | |
| pagetitle | string | |
| filename | string | |
| template | string | |
| language | string | |
| LANG | array | Active language translation strings |
| todaysdate | string | Human friendly formatted version of todays date |
| date_day | string | Current day of the month |
| date_month | string | Current month |
| date_year | string | Current year |
| WEB_ROOT | string | The web path to the WHMCS doc root |
| BASE_PATH_CSS | string | |
| BASE_PATH_JS | string | |
| BASE_PATH_FONTS | string | |
| BASE_PATH_IMG | string | |
| token | string | CSRF token value |
| servedOverSsl | bool | True if page was loaded via https:// |
A key/value pair array of additional template variables to define.
<?php
add_hook('ClientAreaPageViewInvoice', 1, function($vars) {
// Perform hook code here...
});Executes on the client area view quote page and accepts a return of key/value pairs to be made available as additional Smarty template parameters. Input parameters include all currently defined template variables. The following is a list of template variables common to all pages. Additional variables will vary depending upon the page being rendered.
| Variable | Type | Notes |
|---|---|---|
| companyname | string | |
| logo | string | |
| systemurl | string | |
| charset | string | |
| pagetitle | string | |
| filename | string | |
| template | string | |
| language | string | |
| LANG | array | Active language translation strings |
| todaysdate | string | Human friendly formatted version of todays date |
| date_day | string | Current day of the month |
| date_month | string | Current month |
| date_year | string | Current year |
| WEB_ROOT | string | The web path to the WHMCS doc root |
| BASE_PATH_CSS | string | |
| BASE_PATH_JS | string | |
| BASE_PATH_FONTS | string | |
| BASE_PATH_IMG | string | |
| token | string | CSRF token value |
| servedOverSsl | bool | True if page was loaded via https:// |
A key/value pair array of additional template variables to define.
<?php
add_hook('ClientAreaPageViewQuote', 1, function($vars) {
// Perform hook code here...
});Executes on the client area payment methods management page and accepts a return of key/value pairs to be made available as additional Smarty template parameters. Input parameters include all currently defined template variables. The following is a list of template variables common to all pages. Additional variables will vary depending upon the page being rendered.
| Variable | Type | Notes |
|---|---|---|
| companyname | string | |
| logo | string | |
| systemurl | string | |
| charset | string | |
| pagetitle | string | |
| filename | string | |
| template | string | |
| language | string | |
| LANG | array | Active language translation strings |
| todaysdate | string | Human friendly formatted version of todays date |
| date_day | string | Current day of the month |
| date_month | string | Current month |
| date_year | string | Current year |
| WEB_ROOT | string | The web path to the WHMCS doc root |
| BASE_PATH_CSS | string | |
| BASE_PATH_JS | string | |
| BASE_PATH_FONTS | string | |
| BASE_PATH_IMG | string | |
| token | string | CSRF token value |
| servedOverSsl | bool | True if page was loaded via https:// |
A key/value pair array of additional template variables to define.
<?php
add_hook('ClientAreaPaymentMethods', 1, function($vars) {
// Perform hook code here...
});Executes when generating the primary navigation bar in the client area
| Variable | Type | Notes |
|---|---|---|
| N/A | \WHMCS\View\Menu\Item | The currently defined items so further additions can be made |
No response supported
<?php
add_hook('ClientAreaPrimaryNavbar', 1, function($primaryNavbar) {
/** @var \WHMCS\View\Menu\Item $primaryNavbar */
$newMenu = $primaryNavbar->addChild(
'uniqueMenuItemName',
array(
'name' => 'Home',
'label' => Lang::trans('languageStringVariable'),
'uri' => 'clientarea.php',
'order' => 99,
'icon' => 'fas fa-calendar-alt',
)
);
$newMenu->addChild(
'uniqueSubMenuItemName',
array(
'name' => 'Item Name 1',
'label' => Lang::trans('languageStringVariable'),
'uri' => 'cart.php',
'order' => 10,
'icon' => 'fa-cart-plus',
)
);
});Executes when generating the primary side bar in the client area
| Variable | Type | Notes |
|---|---|---|
| N/A | \WHMCS\View\Menu\Item | The currently defined items so further additions can be made |
No response supported
<?php
add_hook('ClientAreaPrimarySidebar', 1, function($primarySidebar) {
/** @var \WHMCS\View\Menu\Item $primarySidebar */
$newMenu = $primarySidebar->addChild(
'uniqueMenuItemName',
array(
'name' => 'Home',
'label' => Lang::trans('languageStringVariable'),
'uri' => 'clientarea.php',
'order' => 99,
'icon' => 'fas fa-calendar-alt',
)
);
$newMenu->addChild(
'uniqueSubMenuItemName',
array(
'name' => 'Item Name 1',
'label' => Lang::trans('languageStringVariable'),
'uri' => 'cart.php',
'order' => 10,
'icon' => 'fa-cart-plus',
)
);
});Executes when the product details page is loaded within the client area. This hook runs regardless of service status, so be sure to check for the appropriate statuses if required.
| Variable | Type | Notes |
|---|---|---|
| service | \WHMCS\Service\Service | A service object representing the service being rendered. |
No response supported
<?php
add_hook('ClientAreaProductDetails', 1, function($vars) {
// Perform hook code here...
});Executes when rendering the client area product details page prior to module template invocation allowing to define additional template parameters.
| Variable | Type | Notes |
|---|---|---|
| serviceid | int | |
| groupname | string | |
| product | string | |
| modulename | string | |
| domain | string | |
| systemStatus | string | |
| username | string | |
| password | string |
Return an array of template parameters to make available to the template.
<?php
add_hook('ClientAreaProductDetailsPreModuleTemplate', 1, function($vars) {
// Perform hook code here...
});Executes after a client has used the register.php file to create a client account.
| Variable | Type | Notes |
|---|---|---|
| user_id | int | The id of the user owning the newly created client. |
| client_id | int | The id of the newly created client. |
No response supported
<?php
add_hook('ClientAreaRegister', 1, function($vars) {
// Perform hook code here...
});Executes when generating the secondary navigation bar in the client area
| Variable | Type | Notes |
|---|---|---|
| N/A | \WHMCS\View\Menu\Item | The currently defined items so further additions can be made |
No response supported
<?php
add_hook('ClientAreaSecondaryNavbar', 1, function($secondaryNavbar) {
/** @var \WHMCS\View\Menu\Item $secondaryNavbar */
$newMenu = $secondaryNavbar->addChild(
'uniqueMenuItemName',
array(
'name' => 'Home',
'label' => Lang::trans('languageStringVariable'),
'uri' => 'clientarea.php',
'order' => 99,
'icon' => 'fas fa-calendar-alt',
)
);
$newMenu->addChild(
'uniqueSubMenuItemName',
array(
'name' => 'Item Name 1',
'label' => Lang::trans('languageStringVariable'),
'uri' => 'cart.php',
'order' => 10,
'icon' => 'fa-cart-plus',
)
);
});Executes when generating the secondary side bar in the client area
| Variable | Type | Notes |
|---|---|---|
| N/A | \WHMCS\View\Menu\Item | The currently defined items so further additions can be made |
No response supported
<?php
add_hook('ClientAreaSecondarySidebar', 1, function($secondarySidebar) {
/** @var \WHMCS\View\Menu\Item $secondarySidebar */
$newMenu = $secondarySidebar->addChild(
'uniqueMenuItemName',
array(
'name' => 'Home',
'label' => Lang::trans('languageStringVariable'),
'uri' => 'clientarea.php',
'order' => 99,
'icon' => 'fas fa-calendar-alt',
)
);
$newMenu->addChild(
'uniqueSubMenuItemName',
array(
'name' => 'Item Name 1',
'label' => Lang::trans('languageStringVariable'),
'uri' => 'cart.php',
'order' => 10,
'icon' => 'fa-cart-plus',
)
);
});Executes when generating the side bars in the client area
| Variable | Type | Notes |
|---|---|---|
| No input parameters for this hook point. |
No response supported
<?php
add_hook('ClientAreaSidebars', 1, function($vars) {
// Perform hook code here...
});