Menu Adam R Brown

WP hooks navigation: Home/browseActions indexFilters index

Source View: site_status_test_php_modules

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
957            *         string $function     Optional. A function name to test for the existence of.
958            *         string $extension    Optional. An extension to check if is loaded in PHP.
959            *         string $constant     Optional. A constant name to check for to verify an extension exists.
960            *         string $class        Optional. A class name to check for to verify an extension exists.
961            *         bool   $required     Is this a required feature or not.
962            *         string $fallback_for Optional. The module this module replaces as a fallback.
963            *     }
964            * }
965            */
966           $modules = apply_filters( 'site_status_test_php_modules', $modules );
967
968           $failures = array();
969
970           foreach ( $modules as $library => $module ) {
971                $extension  = ( isset( $module['extension'] ) ? $module['extension'] : null );
972                $function   = ( isset( $module['function'] ) ? $module['function'] : null );
973                $constant   = ( isset( $module['constant'] ) ? $module['constant'] : null );
974                $class_name = ( isset( $module['class'] ) ? $module['class'] : null );
975