WP HOOKS
filtrod 4.1.0

customize_section_active

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

Opis — z kodu źródłowego

Filters response of WP_Customize_Section::active().

Parametry

ParametrTypOpis
$activeboolWhether the Customizer section is active.
$section\WP_Customize_SectionWP_Customize_Section instance.

Wywołanie

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

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

Popularne w tej kategorii