filtrod 4.1.0
customize_panel_active
Opis — z kodu źródłowego
Filters response of WP_Customize_Panel::active().
Parametry
| Parametr | Typ | Opis |
|---|---|---|
$active | bool | Whether the Customizer panel is active. |
$panel | \WP_Customize_Panel | WP_Customize_Panel instance. |
Wywołanie
Rejestracja callbackaphp
// rejestracja funkcji zwrotnej — podaj liczbę argumentów!
add_filter( 'customize_panel_active', 'twoja_funkcja', 10, 2 );
function twoja_funkcja($param_1, $param_2) {
// Twój kod
}
// rejestracja funkcji zwrotnej — podaj liczbę argumentów!
add_filter( 'customize_panel_active', 'twoja_funkcja', 10, 2 );
function twoja_funkcja($param_1, $param_2) {
// Twój kod
}Popularne w tej kategorii