plusplushosting Posted October 22, 2015 Share Posted October 22, 2015 Hi, im using the following code to remove the Get epp link from the domains side bar, i guess the code is correct or im missing anything? <?php use WHMCS\View\Menu\Item as MenuItem; add_hook('ClientAreaPrimarySidebar', 1, function(MenuItem $primarySidebar) { $primarySidebar->getChild('Domain Details Management') ->removeChild('Get EPP Code'); }); 0 Quote Link to comment Share on other sites More sharing options...
brian! Posted October 22, 2015 Share Posted October 22, 2015 try the code I posted in the thread below... http://forum.whmcs.com/showthread.php?90982-disable-client-get-epp-code&p=438838#post438838 the basic rule to follow when modifying/removing sidebar/navbar links, is that you first need to check that the entry (child) exists... only if it exists, can you do something to change it... if it doesn't exist, and you try to change it, you'll get an error - usually a blank page! 0 Quote Link to comment Share on other sites More sharing options...
plusplushosting Posted October 22, 2015 Author Share Posted October 22, 2015 Thanx for the info and the code, worked great! 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.