Menu Adam R Brown

WP hooks navigation: Home/browseActions indexFilters index

Source View: active_plugins

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
575 // @plugin authors: warning: this gets registered again on the init hook
576 create_initial_taxonomies();
577
578 // Check for hacks file if the option is enabled
579 if ( get_option('hack_file') ) {
580      if ( file_exists(ABSPATH . 'my-hacks.php') )
581           require(ABSPATH . 'my-hacks.php');
582 }
583
584 $current_plugins = apply_filters( 'active_plugins', get_option( 'active_plugins' ) );
585 if ( is_array($current_plugins) && !defined('WP_INSTALLING') ) {
586      foreach ( $current_plugins as $plugin ) {
587           // check the $plugin filename
588           // Validate plugin filename
589           if ( validate_file($plugin) // $plugin must validate as file
590                || '.php' != substr($plugin, -4) // $plugin must end with '.php'
591                || !file_exists(WP_PLUGIN_DIR . '/' . $plugin)     // $plugin must exist
592                )
593                continue;