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 |
---|---|
83 | * The $type parameter allows you to differentiate between the type of advanced |
84 | * plugins to filter the display of. Contexts include 'mustuse' and 'dropins'. |
85 | * |
86 | * @since 3.0.0 |
87 | * |
88 | * @param bool $show Whether to show the advanced plugins for the specified |
89 | * plugin type. Default true. |
90 | * @param string $type The plugin type. Accepts 'mustuse', 'dropins'. |
91 | */ |
92 | if ( apply_filters( 'show_advanced_plugins', true, 'mustuse' ) ) { |
93 | $plugins['mustuse'] = get_mu_plugins(); |
94 | } |
95 |
|
96 | /** This action is documented in wp-admin/includes/class-wp-plugins-list-table.php */ |
97 | if ( apply_filters( 'show_advanced_plugins', true, 'dropins' ) ) |
98 | $plugins['dropins'] = get_dropins(); |
99 |
|
100 | if ( current_user_can( 'update_plugins' ) ) { |
101 | $current = get_site_transient( 'update_plugins' ); |
102 | foreach ( (array) $plugins['all'] as $plugin_file => $plugin_data ) { |
103 | if ( isset( $current->response[ $plugin_file ] ) ) { |
104 | $plugins['all'][ $plugin_file ]['update'] = true; |
105 | $plugins['upgrade'][ $plugin_file ] = $plugins['all'][ $plugin_file ]; |
106 | } |