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.
This hook occurs 2 times in this file.
Line | Code |
---|---|
56 | 'recently_activated' => array(), |
57 | 'upgrade' => array(), |
58 | 'mustuse' => array(), |
59 | 'dropins' => array() |
60 | ); |
61 |
|
62 | $screen = get_current_screen(); |
63 |
|
64 | if ( ! is_multisite() || ( $screen->is_network && current_user_can('manage_network_plugins') ) ) { |
65 | if ( apply_filters( 'show_advanced_plugins', true, 'mustuse' ) ) |
66 | $plugins['mustuse'] = get_mu_plugins(); |
67 | if ( apply_filters( 'show_advanced_plugins', true, 'dropins' ) ) |
68 | $plugins['dropins'] = get_dropins(); |
69 |
|
70 | $current = get_site_transient( 'update_plugins' ); |
71 | foreach ( (array) $plugins['all'] as $plugin_file => $plugin_data ) { |
72 | if ( isset( $current->response[ $plugin_file ] ) ) |
73 | $plugins['upgrade'][ $plugin_file ] = $plugin_data; |
74 | } |
75 | } |
76 |
|