Billing Logic

Specific billing logic governs the automation for many of your business's most important tasks, including ordering, payments, and provisioning.




Troubleshooting Hooks

While developing your own custom code, you may need to test and troubleshoot your implementation of the WHMCS hook system.


Add a Menu Item

Add items to the Client Area navigation menu. This example adds permanent or conditional links to the Client Area navigation menus on self-hosted WHMCS installations.


Add a Panel to Specific Pages

Add a panel to the sidebar. This example adds a support information panel to the sidebar for support-related pages of the Client Area on self-hosted WHMCS installations.


Add a Promotional Offer Panel

Add a Client Area Homepage panel. This example adds a customized promotional panel with a clickable button to the Client Area Homepage on self-hosted WHMCS installations.


Add a Sidebar Item

Add an item to a Client Area sidebar menu. This example uses a hook to add an item to a sidebar menu on a specific Client Area page on self-hosted WHMCS installations.


Add a Social Media Panel

Add a panel to the sidebar. This example adds panel of social media profile links to the sidebar menu on every page of the Client Area on self-hosted WHMCS installations.


Add a Special Offer Panel

Add a panel to the sidebar. This example adds a customized promotional panel to the sidebar menu on every page of the Client Area on self-hosted WHMCS installations.


Add an Informational Panel

Add a Client Area Homepage panel. This example adds an informational panel displaying the current weather to the Client Area Homepage on self-hosted WHMCS installations.


Change a Menu Item Label

Modify an item in the Client Area navigation menu. This example uses a hook to customize the label for one of the default menu items on self-hosted WHMCS installations.


Change a Menu Item Link

Modify an item in the Client Area navigation menu. This example uses the setUri method to change the link target for a menu item on self-hosted WHMCS installations.


Change a Sidebar Menu Label

Modify an item in the Client Area sidebar menu. This example uses a hook to customize the label for one of the default menu items on self-hosted WHMCS installations.


Change a Sidebar Menu Link

Modify an item in the Client Area sidebar menu. This example uses the setUri method to change the link target for a menu item on self-hosted WHMCS installations.


Client Area Homepage Panels

For self-hosted WHMCS installations, customizable panels in the Client Area Homepage can display quick information to clients when they log in.




Client Area Sidebars

You can customize the sidebars that appear on pages in the Client Area for self-hosted WHMCS installations.


Create a Two-Column Panel

Add a Client Area Homepage panel. This example adds a panel that spans two columns in the Client Area Homepage on self-hosted WHMCS installations while in Desktop Mode.


Create Admin Dashboard Widgets

Use hooks to create custom widgets that display to admins in the Admin Area Dashboard on self-hosted WHMCS installations. You can also customize WHMCS's included widgets.


Custom Template PHP

You can add PHP code to your custom templates on self-hosted WHMCS installations. We recommend using the hook system for most customizations.