show_network_active_plugins хук-фильтр . WP 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.
Использование
add_filter( 'show_network_active_plugins', 'filter_function_name_4997' ); function filter_function_name_4997( $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 180
$show_network_active = apply_filters( 'show_network_active_plugins', $show );