Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- /* This hook will remove a clientarea
- display panel from showing on the home
- page of the client area */
- use WHMCS\View\Menu\Item;
- add_hook('ClientAreaHomepagePanels', 1, function (Item $homePagePanels) {
- if (!is_null($homePagePanels->getChild('Recent News'))) {
- $homePagePanels->removeChild('Recent News');
- }
- });
Advertisement
Add Comment
Please, Sign In to add comment