customize_section_active хук-фильтр . WP 4.1.0
Filters response of WP_Customize_Section::active().
Использование
add_filter( 'customize_section_active', 'filter_function_name_2028', 10, 2 ); function filter_function_name_2028( $active, $section ){ // filter... return $active; }
- $active(true/false)
- Whether the Customizer section is active.
- $section(WP_Customize_Section)
- WP_Customize_Section instance.
Список изменений
С версии 4.1.0 | Введена. |
Где вызывается хук
customize_section_active
wp-includes/class-wp-customize-section.php 210
$active = apply_filters( 'customize_section_active', $active, $section );