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 |
---|---|
48 | 'recently_activated' => array(), |
49 | 'upgrade' => array(), |
50 | 'mustuse' => array(), |
51 | 'dropins' => array() |
52 | ); |
53 |
|
54 | $screen = $this->screen; |
55 |
|
56 | if ( ! is_multisite() || ( $screen->in_admin( 'network' ) && current_user_can( 'manage_network_plugins' ) ) ) { |
57 | if ( apply_filters( 'show_advanced_plugins', true, 'mustuse' ) ) |
58 | $plugins['mustuse'] = get_mu_plugins(); |
59 | if ( apply_filters( 'show_advanced_plugins', true, 'dropins' ) ) |
60 | $plugins['dropins'] = get_dropins(); |
61 |
|
62 | if ( current_user_can( 'update_plugins' ) ) { |
63 | $current = get_site_transient( 'update_plugins' ); |
64 | foreach ( (array) $plugins['all'] as $plugin_file => $plugin_data ) { |
65 | if ( isset( $current->response[ $plugin_file ] ) ) { |
66 | $plugins['all'][ $plugin_file ]['update'] = true; |
67 | $plugins['upgrade'][ $plugin_file ] = $plugins['all'][ $plugin_file ]; |
68 | } |