Title: customize_panel_active
Published: December 18, 2014
Last modified: May 20, 2026

---

# apply_filters( ‘customize_panel_active’, bool $active, WP_Customize_Panel $panel )

## In this article

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

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

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

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

 `$active`bool

Whether the Customizer panel is active.

`$panel`[WP_Customize_Panel](https://developer.wordpress.org/reference/classes/wp_customize_panel/)

[WP_Customize_Panel](https://developer.wordpress.org/reference/classes/wp_customize_panel/)
instance.

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

    ```php
    $active = apply_filters( 'customize_panel_active', $active, $panel );
    ```

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

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

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

Check whether panel is active to current Customizer preview.

  |

## 󠀁[Changelog](https://developer.wordpress.org/reference/hooks/customize_panel_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_panel_active%2F)
before being able to contribute a note or feedback.