customize_control_active WordPress Filter Hook

The customize_control_active hook is used to add custom active control settings to the WordPress customizer. This hook allows you to add your own custom settings to the WordPress customizer, and is called when the customizer is first loaded.

apply_filters( 'customize_control_active', bool $active, WP_Customize_Control $control ) #

Filters response of WP_Customize_Control::active().


Parameters

$active

(bool)Whether the Customizer control is active.

$control

(WP_Customize_Control)WP_Customize_Control instance.


Top ↑

Source

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

View on Trac



Top ↑

Changelog

Changelog
VersionDescription
4.0.0Introduced.

The content displayed on this page has been created in part by processing WordPress source code files which are made available under the GPLv2 (or a later version) license by theĀ Free Software Foundation. In addition to this, the content includes user-written examples and information. All material is subject to review and curation by the WPPaste.com community.