show_network_active_plugins filter-hookWP 4.4.0

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

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.

Usage

add_filter( 'show_network_active_plugins', 'wp_kama_show_network_active_plugins_filter' );

/**
 * Function for `show_network_active_plugins` filter-hook.
 * 
 * @param bool $show Whether to show network-active plugins. a Super Admin).
 *
 * @return bool
 */
function wp_kama_show_network_active_plugins_filter( $show ){

	// filter...
	return $show;
}
$show(true|false)
Whether to show network-active plugins. a Super Admin).
Default: whether the current user can manage network plugins (ie

Changelog

Since 4.4.0 Introduced.

Where the hook is called

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

Where the hook is used in WordPress

Usage not found.