customize_panel_active WordPress Filter Hook
The customize_panel_active hook is used to add custom panels to the WordPress Customizer. This hook allows you to add new panels to the Customizer interface. In order to add a new panel, you must first register it using the add_panel() function.
apply_filters( 'customize_panel_active', bool $active , WP_Customize_Panel $panel ) #
Filters response of WP_Customize_Panel::active().
Parameters
- $active
(bool)Whether the Customizer panel is active.
- $panel
(WP_Customize_Panel)WP_Customize_Panel instance.
Source
Changelog
Version | Description |
---|---|
4.1.0 | Introduced. |