VolcanNET Posted August 25, 2019 Share Posted August 25, 2019 Hello, Please help me for hide the "Terminated" & "Cancelled" filters in the sidebar in Client-area via hook Thanks 0 Quote Link to comment Share on other sites More sharing options...
brian! Posted August 26, 2019 Share Posted August 26, 2019 15 hours ago, VolcanNET said: Please help me for hide the "Terminated" & "Cancelled" filters in the sidebar in Client-area via hook I know that you've already found the relevant thread, but i'll post it for others. 0 Quote Link to comment Share on other sites More sharing options...
VolcanNET Posted August 26, 2019 Author Share Posted August 26, 2019 That ticket was close. So I open this topic. I found just a hook for hide terminated services but I need another hook for hide sidebar. Quote you might need another hook to remove the Terminated link from the sidebar if you're showing that sidebar on your site... or even simpler, you should be able to hide it using custom.css 0 Quote Link to comment Share on other sites More sharing options...
brian! Posted August 27, 2019 Share Posted August 27, 2019 21 hours ago, VolcanNET said: I found just a hook for hide terminated services but I need another hook for hide sidebar. to hide the entire filter sidebar ? <?php # Remove Service Status Sidebar Hook # Written by brian! use WHMCS\View\Menu\Item as MenuItem; add_hook('ClientAreaPrimarySidebar', 1, function (MenuItem $primarySidebar) { if (!is_null($primarySidebar->getChild('My Services Status Filter'))) { $primarySidebar->removeChild('My Services Status Filter'); } }); or if it's just the cancelled/terminated filters, you can use CSS. 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.