WP hooks navigation: Home/browse • Actions index • Filters index
To save our bandwidth, we show only a snippet of code around each occurence of the hook. View complete file in SVN (without highlighting).
The best way to understand what a hook does is to look at where it occurs in the source code.
do_action( "hook_name" )
apply_filters( "hook_name", "what_to_filter" )
.Remember, this hook may occur in more than one file. Moreover, the hook's context may change from version to version.
Line | Code |
---|---|
837 | * One of either `$function` or `$extension` must be provided, or they will fail by default. |
838 | * |
839 | * string $function Optional. A function name to test for the existence of. |
840 | * string $extension Optional. An extension to check if is loaded in PHP. |
841 | * bool $required Is this a required feature or not. |
842 | * string $fallback_for Optional. The module this module replaces as a fallback. |
843 | * } |
844 | * } |
845 | */ |
846 | $modules = apply_filters( 'site_status_test_php_modules', $modules ); |
847 |
|
848 | $failures = array(); |
849 |
|
850 | foreach ( $modules as $library => $module ) { |
851 | $extension = ( isset( $module['extension'] ) ? $module['extension'] : null ); |
852 | $function = ( isset( $module['function'] ) ? $module['function'] : null ); |
853 |
|
854 | // If this module is a fallback for another function, check if that other function passed. |
855 | if ( isset( $module['fallback_for'] ) ) { |