Title: site_status_test_result
Published: November 12, 2019
Last modified: May 20, 2026

---

# apply_filters( ‘site_status_test_result’, array $test_result )

## In this article

 * [Parameters](https://developer.wordpress.org/reference/hooks/site_status_test_result/?output_format=md#parameters)
 * [Source](https://developer.wordpress.org/reference/hooks/site_status_test_result/?output_format=md#source)
 * [Related](https://developer.wordpress.org/reference/hooks/site_status_test_result/?output_format=md#related)
 * [Changelog](https://developer.wordpress.org/reference/hooks/site_status_test_result/?output_format=md#changelog)

[ Back to top](https://developer.wordpress.org/reference/hooks/site_status_test_result/?output_format=md#wp--skip-link--target)

Filters the output of a finished Site Health test.

## 󠀁[Parameters](https://developer.wordpress.org/reference/hooks/site_status_test_result/?output_format=md#parameters)󠁿

 `$test_result`array

An associative array of test result data.

 * `label` string
 * A label describing the test, and is used as a header in the output.
 * `status` string
 * The status of the test, which can be a value of `good`, `recommended` or `critical`.
 * `badge` array
 *  Tests are put into categories which have an associated badge shown, these can
   be modified and assigned here.
    - `label` string
    - The test label, for example `Performance`.
    - `color` string
    - Default `blue`. A string representing a color to use for the label.
 * `description` string
 * A more descriptive explanation of what the test looks for, and why it is important
   for the end user.
 * `actions` string
 * An action to direct the user to where they can resolve the issue, if one exists.
 * `test` string
 * The name of the test being ran, used as a reference point.

## 󠀁[Source](https://developer.wordpress.org/reference/hooks/site_status_test_result/?output_format=md#source)󠁿

    ```php
    return apply_filters( 'site_status_test_result', call_user_func( $callback ) );
    ```

[View all references](https://developer.wordpress.org/reference/files/wp-admin/includes/class-wp-site-health.php/)
[View on Trac](https://core.trac.wordpress.org/browser/tags/7.0/src/wp-admin/includes/class-wp-site-health.php#L194)
[View on GitHub](https://github.com/WordPress/wordpress-develop/blob/7.0/src/wp-admin/includes/class-wp-site-health.php#L194-L194)

## 󠀁[Related](https://developer.wordpress.org/reference/hooks/site_status_test_result/?output_format=md#related)󠁿

| Used by | Description | 
| [WP_Site_Health::perform_test()](https://developer.wordpress.org/reference/classes/wp_site_health/perform_test/)`wp-admin/includes/class-wp-site-health.php` |

Runs a Site Health test directly.

  |

## 󠀁[Changelog](https://developer.wordpress.org/reference/hooks/site_status_test_result/?output_format=md#changelog)󠁿

| Version | Description | 
| [5.3.0](https://developer.wordpress.org/reference/since/5.3.0/) | Introduced. |

## User Contributed Notes

You must [log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fdeveloper.wordpress.org%2Freference%2Fhooks%2Fsite_status_test_result%2F)
before being able to contribute a note or feedback.