filtrod 4.4.0
show_network_active_plugins
Opis — z kodu źródłowego
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.
Parametry
| Parametr | Typ | Opis |
|---|---|---|
$show | bool | Whether to show network-active plugins. Default is whether the current user can manage network plugins (ie. a Super Admin). |
Wywołanie
Rejestracja callbackaphp
// rejestracja funkcji zwrotnej
add_filter( 'show_network_active_plugins', 'twoja_funkcja' );
function twoja_funkcja($param_1) {
// Twój kod
}
// rejestracja funkcji zwrotnej
add_filter( 'show_network_active_plugins', 'twoja_funkcja' );
function twoja_funkcja($param_1) {
// Twój kod
}Popularne w tej kategorii