Menu Adam R Brown

WP hooks navigation: Home/browseActions indexFilters index

Source View: show_network_active_plugins

To save our bandwidth, we show only a snippet of code around each occurence of the hook. View complete file in SVN (without highlighting).

Understanding Source Code

The best way to understand what a hook does is to look at where it occurs in the source code.

Remember, this hook may occur in more than one file. Moreover, the hook's context may change from version to version.

Source View

Line Code
171                 * "Network: true" in the plugin header).
172                 *
173                 * Plugins cannot be network-activated or network-deactivated from this screen.
174                 *
175                 * @since 4.4.0
176                 *
177                 * @param bool $show Whether to show network-active plugins. Default is whether the current
178                 *                   user can manage network plugins (ie. a Super Admin).
179                 */
180                $show_network_active = apply_filters( 'show_network_active_plugins', $show );
181           }
182
183           if ( $screen->in_admin( 'network' ) ) {
184                $recently_activated = get_site_option( 'recently_activated', array() );
185           } else {
186                $recently_activated = get_option( 'recently_activated', array() );
187           }
188
189           foreach ( $recently_activated as $key => $time ) {