Title: WP_Customize_Panel::active_callback
Published: December 18, 2014
Last modified: April 28, 2025

---

# WP_Customize_Panel::active_callback(): bool

## In this article

 * [Description](https://developer.wordpress.org/reference/classes/wp_customize_panel/active_callback/?output_format=md#description)
 * [Return](https://developer.wordpress.org/reference/classes/wp_customize_panel/active_callback/?output_format=md#return)
 * [Source](https://developer.wordpress.org/reference/classes/wp_customize_panel/active_callback/?output_format=md#source)
 * [Changelog](https://developer.wordpress.org/reference/classes/wp_customize_panel/active_callback/?output_format=md#changelog)

[ Back to top](https://developer.wordpress.org/reference/classes/wp_customize_panel/active_callback/?output_format=md#wp--skip-link--target)

Default callback used when invoking [WP_Customize_Panel::active()](https://developer.wordpress.org/reference/classes/wp_customize_panel/active/).

## 󠀁[Description](https://developer.wordpress.org/reference/classes/wp_customize_panel/active_callback/?output_format=md#description)󠁿

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

## 󠀁[Return](https://developer.wordpress.org/reference/classes/wp_customize_panel/active_callback/?output_format=md#return)󠁿

 bool Always true.

## 󠀁[Source](https://developer.wordpress.org/reference/classes/wp_customize_panel/active_callback/?output_format=md#source)󠁿

    ```php
    public function active_callback() {
    	return true;
    }
    ```

[View all references](https://developer.wordpress.org/reference/files/wp-includes/class-wp-customize-panel.php/)
[View on Trac](https://core.trac.wordpress.org/browser/tags/6.9.4/src/wp-includes/class-wp-customize-panel.php#L215)
[View on GitHub](https://github.com/WordPress/wordpress-develop/blob/6.9.4/src/wp-includes/class-wp-customize-panel.php#L215-L217)

## 󠀁[Changelog](https://developer.wordpress.org/reference/classes/wp_customize_panel/active_callback/?output_format=md#changelog)󠁿

| Version | Description | 
| [4.1.0](https://developer.wordpress.org/reference/since/4.1.0/) | Introduced. |

## User Contributed Notes

You must [log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fdeveloper.wordpress.org%2Freference%2Fclasses%2Fwp_customize_panel%2Factive_callback%2F)
before being able to contribute a note or feedback.