SaneChoiceLtd Posted September 16, 2021 Share Posted September 16, 2021 Hi All, How do you create a HOOK that changes the Server Status destination URL to an alternative address? We dont want to use the server status.php, but want to link to an external site on a new tab/window in the browser. Thanks, Brad 0 Quote Link to comment Share on other sites More sharing options...
HostingMe Posted September 16, 2021 Share Posted September 16, 2021 Assuming you're talking about changing the 'Network Status' link in the nav bar then the hook below will do the job. add_hook('ClientAreaPrimaryNavbar', 1, function (MenuItem $primaryNavbar) { if (!is_null($primaryNavbar->getChild('Network Status'))) { $primaryNavbar->getChild('Network Status') ->setURI('https://example.com'); } }); 1 Quote Link to comment Share on other sites More sharing options...
SaneChoiceLtd Posted September 17, 2021 Author Share Posted September 17, 2021 Thanks @HostingMe - awesome! 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.