WP_Customize_Panel::active(): bool

In this article

Check whether panel is active to current Customizer preview.

Return

bool Whether the panel is active to the current preview.

Source

final public function active() {	$panel = $this;	$active = call_user_func( $this->active_callback, $this );	/** * Filters response of WP_Customize_Panel::active(). * * @since 4.1.0 * * @param bool $active Whether the Customizer panel is active. * @param WP_Customize_Panel $panel WP_Customize_Panel instance. */	$active = apply_filters( 'customize_panel_active', $active, $panel );	return $active; } 

Hooks

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

Filters response of WP_Customize_Panel::active().

Changelog

VersionDescription
4.1.0Introduced.

User Contributed Notes

You must log in before being able to contribute a note or feedback.