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.


Top ↑

Source

File: wp-includes/class-wp-customize-panel.php

View on Trac



Top ↑

Changelog

Changelog
VersionDescription
4.1.0Introduced.

The content displayed on this page has been created in part by processing WordPress source code files which are made available under the GPLv2 (or a later version) license by theĀ Free Software Foundation. In addition to this, the content includes user-written examples and information. All material is subject to review and curation by the WPPaste.com community.