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

Top ↑

See also


Top ↑

Parameters

$args

(array)Array of Customizer setting arguments.

$id

(string)Widget setting ID.


Top ↑

Source

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

View on Trac



Top ↑

Changelog

Changelog
VersionDescription
3.9.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.

Show More