PHP code example of vigilant / healthchecks
1. Go to this page and download the library: Download vigilant/healthchecks library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
vigilant / healthchecks example snippets
use Vigilant\HealthChecksBase\Checks\Metric;
use Vigilant\WordpressHealthchecks\HealthCheckRegistry;
add_action('vigilant_healthchecks_prepare', function (HealthCheckRegistry $registry): void {
$registry->registerCheck(MyCustomCheck::make());
$registry->registerMetric(MyCustomMetric::make());
});