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