Remove a Panel
On this page
The customizable panels in the Client Area Homepage display quick information to clients when they log in. You can customize this part of the Client Area to suit your brand and your customers’ needs. This can include removing panels that you do not want your customers to see.
For more information, see Client Area Homepage Panels.
Remove a Panel
You can remove panels from the Client Area.
Create the includes/hooks/removeRegisterDomainPanel.php
file in your WHMCS installation using the example below. WHMCS will parse the file and hook when the page loads and will run the hook function when the client visits the homepage after logging in.
Example Code
<?php
// This hook will remove the Register a New Domain panel from the Client Area
use WHMCS\View\Menu\Item;
add_hook('ClientAreaHomepagePanels', 1, function (Item $homePagePanels) {
if (!is_null($homePagePanels->getChild('Register a New Domain'))) {
$homePagePanels->removeChild('Register a New Domain');
}
});
Last modified: November 12, 2024