WP HOOKS
filtrod 4.1.0

customize_panel_active

Args 2Plik wp-includes/class-wp-customize-panel.phpDokumentacja WP ↗

Opis — z kodu źródłowego

Filters response of WP_Customize_Panel::active().

Parametry

ParametrTypOpis
$activeboolWhether the Customizer panel is active.
$panel\WP_Customize_PanelWP_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
}

Popularne w tej kategorii