Remove menu - Printable Version +- WHMCS Services Forum (https://www.whmcsservices.community) +-- Forum: WS Modules (https://www.whmcsservices.community/forumdisplay.php?fid=5) +--- Forum: Addons Modules (https://www.whmcsservices.community/forumdisplay.php?fid=6) +---- Forum: Domain Auction (https://www.whmcsservices.community/forumdisplay.php?fid=76) +---- Thread: Remove menu (/showthread.php?tid=1026) |
Remove menu - wssupport - 08-26-2022 You can use this codes to remove items from menu: <?php function adddomainauctionmenuremove() { if (isset($_SESSION['uid'])) { $secondaryNavbar = Menu::primaryNavbar(); if (!is_null($secondaryNavbar) && !is_null($secondaryNavbar['Domains'])) { if(!is_null($secondaryNavbar['Domains']->getChild('domain_auction_1'))){ $secondaryNavbar['Domains']->removeChild('domain_auction_1'); $secondaryNavbar['Domains']->removeChild('domain_auction_2'); } } } add_hook("ClientAreaSecondaryNavbar", 100, "adddomainauctionmenuremove"); Save under /includes/hooks/<any_filename>.php |