filtrod 3.9.0
is_active_sidebar
Opis — z kodu źródłowego
Filters whether a dynamic sidebar is considered "active".
Parametry
| Parametr | Typ | Opis |
|---|---|---|
$is_active_sidebar | bool | Whether or not the sidebar should be considered "active". In other words, whether the sidebar contains any widgets. |
$index | int | string | Index, 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
}
// 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