Change a Sidebar Menu Label
On this page
You can customize the Client Area’s sidebar navigation menus through hooks and custom modules.
For more information, see Client Area Sidebars and our Developer Documentation.
Changing the Text Label of a Sidebar Item
Language files control all of the default sidebar menu items. Search in your active language file for the text you see in the sidebar menu item label. You can adjust it in this file to change the displayed label, or you can use a hook:
<?php
use WHMCS\View\Menu\Item as MenuItem;
add_hook('ClientAreaPrimarySidebar', 1, function(MenuItem $primarySidebar) {
$primarySidebar->getChild("My Account")
->getChild("Billing Information")
->setLabel("Custom Text Here");
});
Last modified: October 30, 2024