GC_Customize_Section::active()

最后更新于:2021-11-27 07:30:52

GC_Customize_Section::active()

Check whether section is active to current Customizer preview.

响应

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

源文件

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

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

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

		return $active;
	}