WordPress at a glance
function is not described

WP_Customize_Panel::active_callback() WP 4.1.0

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

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

This is a method of the class: WP_Customize_Panel

No Hooks.


true/false. Always true.


$WP_Customize_Panel = new WP_Customize_Panel();
$var = $WP_Customize_Panel->active_callback();


Since 4.1.0 Introduced.

Code of WP Customize Panel::active callback: wp-includes/class-wp-customize-panel.php WP 5.4.2

public function active_callback() {
	return true;