W3cubDocs

/WordPress

WP_Customize_Section::active_callback()

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

Description

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

Return

(true) Always true.

Source

File: wp-includes/class-wp-customize-section.php

public function active_callback() {
		return true;
	}

Changelog

Version Description
4.1.0 Introduced.

© 2003–2019 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/classes/wp_customize_section/active_callback