WP HOOKS
filtrod 4.4.0

show_network_active_plugins

Args 1Plik wp-admin/includes/class-wp-plugins-list-table.phpDokumentacja WP ↗

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

ParametrTypOpis
$showboolWhether 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
}

Popularne w tej kategorii