Rigsby Posted May 7, 2017 Share Posted May 7, 2017 Hello... again! : ) Please can someone let me know how to fix this? I wish to hide View Available Addons: <?php use WHMCS\View\Menu\Item as MenuItem; add_hook('ClientAreaPrimaryNavbar', 1, function (MenuItem $primaryNavbar) { if (!is_null($primaryNavbar->getChild(‘Actions’))) { $primaryNavbar->getChild('Actions')->removeChild('View Available Addons'); } }); Thank you : ) 0 Quote Link to comment Share on other sites More sharing options...
brian! Posted May 8, 2017 Share Posted May 8, 2017 if it's a sidebar, then it'll be using one of the sidebar hooks.. <?php use WHMCS\View\Menu\Item as MenuItem; add_hook('ClientAreaSecondarySidebar', 1, function (MenuItem $secondarySidebar) { if (!is_null($secondarySidebar->getChild('Actions'))) { $secondarySidebar->getChild('Actions')->removeChild('View Available Addons'); } }); 0 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.