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
2690            *             @type bool     $has_rest          Whether the `$test` property points to a REST API endpoint.
2691            *             @type bool     $skip_cron         Whether to skip this test when running as cron.
2692            *             @type callable $async_direct_test A manner of directly calling the test marked as asynchronous,
2693            *                                               as the scheduled event can not authenticate, and endpoints
2694            *                                               may require authentication.
2695            *         }
2696            *     }
2697            * }
2698            */
2699           $tests = apply_filters( 'site_status_tests', $tests );
2701           // Ensure that the filtered tests contain the required array keys.
2702           $tests = array_merge(
2703                array(
2704                     'direct' => array(),
2705                     'async'  => array(),
2706                ),
2707                $tests
2708           );