Title: customize_section_active
Published: December 18, 2014
Last modified: April 28, 2025

---

# apply_filters( ‘customize_section_active’, bool $active, WP_Customize_Section $section )

## In this article

 * [Parameters](https://developer.wordpress.org/reference/hooks/customize_section_active/?output_format=md#parameters)
 * [Source](https://developer.wordpress.org/reference/hooks/customize_section_active/?output_format=md#source)
 * [Related](https://developer.wordpress.org/reference/hooks/customize_section_active/?output_format=md#related)
 * [Changelog](https://developer.wordpress.org/reference/hooks/customize_section_active/?output_format=md#changelog)

[ Back to top](https://developer.wordpress.org/reference/hooks/customize_section_active/?output_format=md#wp--skip-link--target)

Filters response of [WP_Customize_Section::active()](https://developer.wordpress.org/reference/classes/wp_customize_section/active/).

## 󠀁[Parameters](https://developer.wordpress.org/reference/hooks/customize_section_active/?output_format=md#parameters)󠁿

 `$active`bool

Whether the Customizer section is active.

`$section`[WP_Customize_Section](https://developer.wordpress.org/reference/classes/wp_customize_section/)

[WP_Customize_Section](https://developer.wordpress.org/reference/classes/wp_customize_section/)
instance.

## 󠀁[Source](https://developer.wordpress.org/reference/hooks/customize_section_active/?output_format=md#source)󠁿

    ```php
    $active = apply_filters( 'customize_section_active', $active, $section );
    ```

[View all references](https://developer.wordpress.org/reference/files/wp-includes/class-wp-customize-section.php/)
[View on Trac](https://core.trac.wordpress.org/browser/tags/6.9.4/src/wp-includes/class-wp-customize-section.php#L211)
[View on GitHub](https://github.com/WordPress/wordpress-develop/blob/6.9.4/src/wp-includes/class-wp-customize-section.php#L211-L211)

## 󠀁[Related](https://developer.wordpress.org/reference/hooks/customize_section_active/?output_format=md#related)󠁿

| Used by | Description | 
| [WP_Customize_Section::active()](https://developer.wordpress.org/reference/classes/wp_customize_section/active/)`wp-includes/class-wp-customize-section.php` |

Check whether section is active to current Customizer preview.

  |

## 󠀁[Changelog](https://developer.wordpress.org/reference/hooks/customize_section_active/?output_format=md#changelog)󠁿

| Version | Description | 
| [4.1.0](https://developer.wordpress.org/reference/since/4.1.0/) | Introduced. |

## User Contributed Notes

You must [log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fdeveloper.wordpress.org%2Freference%2Fhooks%2Fcustomize_section_active%2F)
before being able to contribute a note or feedback.