Jump to content

remove Get EEP from side bar giving me a blank page


Recommended Posts

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');
});

Link to comment
Share on other sites

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!

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated