WP HOOKS
filtrod 3.9.0

is_active_sidebar

Args 2Plik wp-includes/widgets.phpDokumentacja WP ↗

Opis — z kodu źródłowego

Filters whether a dynamic sidebar is considered "active".

Parametry

ParametrTypOpis
$is_active_sidebarboolWhether or not the sidebar should be considered "active". In other words, whether the sidebar contains any widgets.
$indexint | stringIndex, name, or ID of the dynamic sidebar.

Wywołanie

Rejestracja callbackaphp
// rejestracja funkcji zwrotnej — podaj liczbę argumentów!
add_filter( 'is_active_sidebar', 'twoja_funkcja', 10, 2 );

function twoja_funkcja($param_1, $param_2) {
	// Twój kod
}

Popularne w tej kategorii