widget_customizer_setting_args WordPress Filter Hook
The widget_customizer_setting_args hook allows you to modify the arguments for a Customizer setting. This can be useful for setting a default value, modifying the control type, or adding a customize_save_callback.
apply_filters( 'widget_customizer_setting_args', array $args , string $id ) #
Filters the common arguments supplied when constructing a Customizer setting.
Description
See also
Parameters
- $args
(array)Array of Customizer setting arguments.
- $id
(string)Widget setting ID.
Source
Changelog
Version | Description |
---|---|
3.9.0 | Introduced. |