WP_Customize_Section::active()
Check whether section is active to current Customizer preview.
Method of the class: WP_Customize_Section{}
Hooks from the method
Return
true|false
. Whether the section is active to the current preview.
Usage
$WP_Customize_Section = new WP_Customize_Section(); $WP_Customize_Section->active();
Changelog
Since 4.1.0 | Introduced. |
WP_Customize_Section::active() WP Customize Section::active code WP 6.7.1
final public function active() { $section = $this; $active = call_user_func( $this->active_callback, $this ); /** * Filters response of WP_Customize_Section::active(). * * @since 4.1.0 * * @param bool $active Whether the Customizer section is active. * @param WP_Customize_Section $section WP_Customize_Section instance. */ $active = apply_filters( 'customize_section_active', $active, $section ); return $active; }