Menu Adam R Brown

WP hooks navigation: Home/browseActions indexFilters index

Source View: site_status_tests

To save our bandwidth, we show only a snippet of code around each occurence of the hook. View complete file in SVN (without highlighting).

Understanding Source Code

The best way to understand what a hook does is to look at where it occurs in the source code.

Remember, this hook may occur in more than one file. Moreover, the hook's context may change from version to version.

Source View

Line Code
2412            *                                           to be called to perform an async test.
2413            *         @type boolean  $has_rest          Optional. Denote if `$test` has a REST API endpoint.
2414            *         @type boolean  $skip_cron         Whether to skip this test when running as cron.
2415            *         @type callable $async_direct_test A manner of directly calling the test marked as asynchronous,
2416            *                                           as the scheduled event can not authenticate, and endpoints
2417            *                                           may require authentication.
2418            *     }
2419            * }
2420            */
2421           $tests = apply_filters( 'site_status_tests', $tests );
2422
2423           // Ensure that the filtered tests contain the required array keys.
2424           $tests = array_merge(
2425                array(
2426                     'direct' => array(),
2427                     'async'  => array(),
2428                ),
2429                $tests
2430           );