WP_Customize_Control::active_callback()publicWP 4.0.0

Default callback used when invoking WP_Customize_Control::active().

Subclasses can override this with their specific logic, or they may provide an 'active_callback' argument to the constructor.

Method of the class: WP_Customize_Control{}

No Hooks.

Return

true. Always true.

Usage

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

Changelog

Since 4.0.0 Introduced.

WP_Customize_Control::active_callback() code WP 6.6

public function active_callback() {
	return true;
}