Jump to content

erik73

Newbie
  • Content count

    2
  • Joined

  • Last visited

Community Reputation

10 Good

About erik73

  • Rank
    Newbie

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

  1. Now I have it - IT WORKS!!! Sorry guys - moderator may delete or leave here for educational purposes <?php use WHMCS\View\Menu\Item as MenuItem; add_hook('ClientAreaPrimarySidebar', 1, function(MenuItem $primarySidebar) { if (!is_null($primarySidebar->getChild('Domain Details Management'))) { $primarySidebar->getChild('Domain Details Management') ->getChild('Change Owner') ->setLabel('Inhaber wechseln'); } });
  2. Can you help? Trying to translate a Primary Sidebar Item. This little Hooks works on the Domains pages where the Primary Sidebar is shown but gives me an "Ooops"-error on all other pages: <?php use WHMCS\View\Menu\Item as MenuItem; add_hook('ClientAreaPrimarySidebar', 1, function(MenuItem $primarySidebar) { $primarySidebar->getChild('Domain Details Management') ->getChild('Change Owner') ->setLabel('Inhaber wechseln'); }); Now I tried to adapt the code listed above but this doesn't even work on the Domains page (Ooops): <?php use WHMCS\View\Menu\Item as MenuItem; add_hook('ClientAreaPrimarySidebar', 1, function(MenuItem $primarySidebar) { if (!is_null($primarySidebar->getChild('Domain Details Management'))) { $primarySidebar->getChild('Change Owner') ->setLabel('Inhaber wechseln'); } }); What am I doing wrong here? Thank you!! Biting in my chair :9)
×

Important Information

By using this site, you agree to our Terms of Use & Guidelines