show_network_active_plugins

Filters whether to display network-active plugins alongside plugins active for the current site.

Description

apply_filters( 'show_network_active_plugins', (bool) $show ); 

This also controls the display of inactive network-only plugins (plugins with "Network: true" in the plugin header).

Plugins cannot be network-activated or network-deactivated from this screen.

Parameters (1)

0. $show (bool)
Whether to show network-active plugins. Default is whether the current user can manage network plugins (ie. a Super Admin).

Usage

To run the hook, copy the example below.
  1. $show = apply_filters( 'show_network_active_plugins', $show ); 
  2.  
  3. if ( !empty( $show ) ) { 
  4.  
  5. // everything has led up to this point... 
  6.  
  7.  
The following example is for adding a hook callback.
  1. // define the show_network_active_plugins callback 
  2. function filter_show_network_active_plugins( $show ) { 
  3. // make filter magic happen here... 
  4. return $show
  5. }; 
  6.  
  7. // add the filter 
  8. add_filter( 'show_network_active_plugins', 'filter_show_network_active_plugins', 10, 1 ); 
To remove a hook callback, use the example below.
  1. // remove the filter 
  2. remove_filter( 'show_network_active_plugins', 'filter_show_network_active_plugins', 10, 1 ); 

Defined (1)

The filter is defined in the following location(s).

/wp-admin/includes/class-wp-plugins-list-table.php  
  1. $show_network_active = apply_filters( 'show_network_active_plugins', $show );