Last active
March 30, 2025 18:06
-
-
Save the-sufi/44fba60b7fa6799f646b1308eaba5671 to your computer and use it in GitHub Desktop.
WHMCS Remove Announcements from clientarea homepage
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* code goes inside "includes/hooks" directory | |
*/ | |
/** | |
* Remove Announcements from homepage | |
*/ | |
function dctit_remove_announcements_from_homepage( $home_page_panels) { | |
$home_page_panels->removeChild('Recent News'); | |
} | |
add_hook("ClientAreaHomepagePanels", 1, "dctit_remove_announcements_from_homepage"); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment