# elasticpress/4.7.2/includes/health-check.php

ElasticPress, version 4.7.2. 22 lines.

- Page: https://pluginprobe.com/plugins/elasticpress/4.7.2/code/includes/health-check.php
- Raw: https://pluginprobe.com/plugins/elasticpress/4.7.2/raw/includes/health-check.php
- Modified: 2021-07-07T16:04:26+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/elasticpress/4.7.2/code/includes/health-check.php#L10-L20`.

```php
<?php
/**
 * Health check
 *
 * @package elasticpress
 * @since   3.6.0
 */

namespace ElasticPress;

if ( ! defined( 'ABSPATH' ) ) {
	exit; // Exit if accessed directly.
}

$health_checks = [
	new HealthCheck\HealthCheckElasticsearch(),
];

foreach ( $health_checks as $health_check ) {
	$health_check->register_test();
}

```
