GC_Customize_Panel::active()

最后更新于:2021-11-27 06:46:03

GC_Customize_Panel::active()

Check whether panel is active to current Customizer preview.

响应

(bool) Whether the panel is active to the current preview.

源文件

文件: gc-includes/class-gc-customize-panel.php

	final public function active() {
		$panel  = $this;
		$active = call_user_func( $this->active_callback, $this );

		/**
		 * Filters response of GC_Customize_Panel::active().
		 *
		 * @since 4.1.0
		 *
		 * @param bool               $active Whether the Customizer panel is active.
		 * @param GC_Customize_Panel $panel  GC_Customize_Panel instance.
		 */
		$active = apply_filters( 'customize_panel_active', $active, $panel );

		return $active;
	}