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.


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.


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.


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.


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.


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.


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.


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.


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.


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.


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.








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 while in Desktop Mode.


Create Admin Dashboard Widgets

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


Custom Template PHP

You can add PHP code to your custom templates. We recommend using the hook system for most customizations.