Unfortunately, WordPress does not give a straightforward UI to customise the Site Health data sources. You have write some PHP code in a must-use plugin. It's easier than it sounds, just annoying when you're coming from Joomla :)
Create a new file wp-content/mu-plugins/sitehealth_customisation.php
(the name is up to you, as long as it's in this folder) with the following code:
<?php
add_filter(
'site_status_tests',
function (array $tests): array
{
if (isset($tests['direct']['admintools_malware']))
{
unset($tests['direct']['admintools_malware']);
}
if (isset($tests['direct']['admintools_scanner']))
{
unset($tests['direct']['admintools_scanner']);
}
return $tests;
},
100
);
This removes the “Admin Tools PHP Scanner” and “Admin Tools Malware detection” items from the Site Health page.
The other two items we define are admintools_waf
for “Admin Tools WAF”, and admintools_htaccess
for “Admin Tools Htaccess Maker”. In case you want to remove them duplicate one of the if-blocks and change the admintools_malware
item with the one you want to remove.
Pro tip: Once you get it working on one site all you have to do is copy the file you created on all other sites, at the same location relative to the site's root.
Nicholas K. Dionysopoulos
Lead Developer and Director
🇬🇷Greek: native 🇬🇧English: excellent 🇫🇷French: basic • 🕐 My time zone is Europe / Athens
Please keep in mind my timezone and cultural differences when reading my replies. Thank you!