WordPress at a glance
function is not described

WP_Customize_Control::active() public WP 4.0.0

Check whether control is active to current Customizer preview.

{} It's a method of the class: WP_Customize_Control{}

Hooks from the method
Return

true/false. Whether the control is active to the current preview.

Usage

$WP_Customize_Control = new WP_Customize_Control();
$WP_Customize_Control->active();

Changelog

Since 4.0.0 Introduced.

Code of WP_Customize_Control::active() WP 5.5.1

<?php
final public function active() {
	$control = $this;
	$active  = call_user_func( $this->active_callback, $this );

	/**
	 * Filters response of WP_Customize_Control::active().
	 *
	 * @since 4.0.0
	 *
	 * @param bool                 $active  Whether the Customizer control is active.
	 * @param WP_Customize_Control $control WP_Customize_Control instance.
	 */
	$active = apply_filters( 'customize_control_active', $active, $control );

	return $active;
}