customize_panel_active filter-hook . WP 4.1.0
Filters response of WP_Customize_Panel::active().
Usage
add_filter( 'customize_panel_active', 'filter_function_name_6601', 10, 2 ); function filter_function_name_6601( $active, $panel ){ // filter... return $active; }
- $active(true/false)
- Whether the Customizer panel is active.
- $panel(WP_Customize_Panel)
- WP_Customize_Panel instance.
Changelog
Since 4.1.0 | Introduced. |
Where the hook is called
customize_panel_active
wp-includes/class-wp-customize-panel.php 194
$active = apply_filters( 'customize_panel_active', $active, $panel );