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 |
---|---|
144 | * "Network: true" in the plugin header). |
145 | * |
146 | * Plugins cannot be network-activated or network-deactivated from this screen. |
147 | * |
148 | * @since 4.4.0 |
149 | * |
150 | * @param bool $show Whether to show network-active plugins. Default is whether the current |
151 | * user can manage network plugins (ie. a Super Admin). |
152 | */ |
153 | $show_network_active = apply_filters( 'show_network_active_plugins', $show ); |
154 | } |
155 |
|
156 | set_transient( 'plugin_slugs', array_keys( $plugins['all'] ), DAY_IN_SECONDS ); |
157 |
|
158 | if ( $screen->in_admin( 'network' ) ) { |
159 | $recently_activated = get_site_option( 'recently_activated', array() ); |
160 | } else { |
161 | $recently_activated = get_option( 'recently_activated', array() ); |
162 | } |