Guest User

Untitled

a guest
Sep 16th, 2015
37
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.32 KB | None | 0 0
  1. <?php
  2. /* This hook will remove a clientarea
  3. display panel from showing on the home
  4. page of the client area */
  5. use WHMCS\View\Menu\Item;
  6. add_hook('ClientAreaHomepagePanels', 1, function (Item $homePagePanels) {
  7. if (!is_null($homePagePanels->getChild('Recent News'))) {
  8. $homePagePanels->removeChild('Recent News');
  9. }
  10. });
Advertisement
Add Comment
Please, Sign In to add comment