On this page
apply_filters( 'customize_panel_active', bool $active, WP_Customize_Panel $panel )
Filters response of WP_Customize_Panel::active().
Parameters
$activebool-
Whether the Customizer panel is active.
$panelWP_Customize_Panel-
WP_Customize_Panel instance.
Source
File: wp-includes/class-wp-customize-panel.php. View all references
$active = apply_filters( 'customize_panel_active', $active, $panel );
Related
Used By
| Used By | Description |
|---|---|
| WP_Customize_Panel::active() wp-includes/class-wp-customize-panel.php | Check whether panel is active to current Customizer preview. |
Changelog
| Version | Description |
|---|---|
| 4.1.0 | Introduced. |
© 2003–2022 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/customize_panel_active