On this page
apply_filters( 'customize_control_active', bool $active, WP_Customize_Control $control )
Filters response of WP_Customize_Control::active().
Parameters
$activebool-
Whether the Customizer control is active.
$controlWP_Customize_Control-
WP_Customize_Control instance.
Source
File: wp-includes/class-wp-customize-control.php. View all references
$active = apply_filters( 'customize_control_active', $active, $control );
Related
Used By
| Used By | Description |
|---|---|
| WP_Customize_Control::active() wp-includes/class-wp-customize-control.php | Check whether control is active to current Customizer preview. |
Changelog
| Version | Description |
|---|---|
| 4.0.0 | Introduced. |
© 2003–2022 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/customize_control_active