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 |
---|---|
1015 | * @type string $function Optional. A function name to test for the existence of. |
1016 | * @type string $extension Optional. An extension to check if is loaded in PHP. |
1017 | * @type string $constant Optional. A constant name to check for to verify an extension exists. |
1018 | * @type string $class Optional. A class name to check for to verify an extension exists. |
1019 | * @type bool $required Is this a required feature or not. |
1020 | * @type string $fallback_for Optional. The module this module replaces as a fallback. |
1021 | * } |
1022 | * } |
1023 | */ |
1024 | $modules = apply_filters( 'site_status_test_php_modules', $modules ); |
1025 |
|
1026 | $failures = array(); |
1027 |
|
1028 | foreach ( $modules as $library => $module ) { |
1029 | $extension_name = ( isset( $module['extension'] ) ? $module['extension'] : null ); |
1030 | $function_name = ( isset( $module['function'] ) ? $module['function'] : null ); |
1031 | $constant_name = ( isset( $module['constant'] ) ? $module['constant'] : null ); |
1032 | $class_name = ( isset( $module['class'] ) ? $module['class'] : null ); |
1033 |
|