customize_section_active filter-hookWP 4.1.0

Filters response of WP_Customize_Section::active().

Usage

add_filter( 'customize_section_active', 'wp_kama_customize_section_active_filter', 10, 2 );

/**
 * Function for `customize_section_active` filter-hook.
 * 
 * @param bool                 $active  Whether the Customizer section is active.
 * @param WP_Customize_Section $section WP_Customize_Section instance.
 *
 * @return bool
 */
function wp_kama_customize_section_active_filter( $active, $section ){

	// filter...
	return $active;
}
$active(true|false)
Whether the Customizer section is active.
$section(WP_Customize_Section)
WP_Customize_Section instance.

Changelog

Since 4.1.0 Introduced.

Where the hook is called

WP_Customize_Section::active()
customize_section_active
wp-includes/class-wp-customize-section.php 211
$active = apply_filters( 'customize_section_active', $active, $section );

Where the hook is used in WordPress

Usage not found.