lastresmellizas Posted May 21, 2017 Share Posted May 21, 2017 Hello friends, how can I delete this Hook in the sidebar ?? I send a screenshot. Thanks and regards, 0 Quote Link to comment Share on other sites More sharing options...
brian! Posted May 21, 2017 Share Posted May 21, 2017 try creating a new .php file in /includes/hooks and adding... <?php use WHMCS\View\Menu\Item as MenuItem; add_hook('ClientAreaSecondarySidebar', 1, function (MenuItem $secondarySidebar) { if (!is_null($secondarySidebar->getChild('Actions'))) { $secondarySidebar->removeChild('Actions'); } }); 0 Quote Link to comment Share on other sites More sharing options...
lastresmellizas Posted May 21, 2017 Author Share Posted May 21, 2017 Thank you very much Brian. Perfect 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.