show_network_active_plugins
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.
Использование
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).
По умолчанию: whether the current user can manage network plugins (ie
Список изменений
| С версии 4.4.0 | Введена. |
Где вызывается хук
wp-admin/includes/class-wp-plugins-list-table.php 179
$show_network_active = apply_filters( 'show_network_active_plugins', $show );