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 |
|---|---|
| 369 | <div id="message" class="updated"><p><?php _e('No out of date plugins were selected.'); ?></p></div> |
| 370 | <?php endif; ?> |
| 371 | |
| 372 | <div class="wrap"> |
| 373 | <?php screen_icon(); ?> |
| 374 | <h2><?php echo esc_html( $title ); if ( current_user_can('install_plugins') ) { ?> <a href="plugin-install.php" class="button add-new-h2"><?php echo esc_html_x('Add New', 'plugin'); ?></a><?php } ?></h2> |
| 375 | |
| 376 | <?php |
| 377 | |
| 378 | $all_plugins = apply_filters( 'all_plugins', get_plugins() ); |
| 379 | $search_plugins = array(); |
| 380 | $active_plugins = array(); |
| 381 | $inactive_plugins = array(); |
| 382 | $recent_plugins = array(); |
| 383 | $recently_activated = get_option('recently_activated', array()); |
| 384 | $upgrade_plugins = array(); |
| 385 | $network_plugins = array(); |
| 386 | $mustuse_plugins = $dropins_plugins = array(); |
| 387 | if ( ! is_multisite() || current_user_can('manage_network_plugins') ) { |