Description
Adds a customize setting.
Occurrences
Filename | Line Number |
---|---|
wp-includes/class-wp-customize-manager.php | 3783 |
wp-includes/class-wp-customize-manager.php | 3832 |
Parameters
Type | Name | Description |
---|---|---|
WP_Customize_Setting|string | $id | Customize Setting object, or ID. |
array | $args | Optional. Array of properties for the new Setting object. See WP_Customize_Setting::__construct() for information on accepted arguments. Default empty array. |
PHP Doc
/**
* Adds a customize setting.
*
* @since 3.4.0
* @since 4.5.0 Return added WP_Customize_Setting instance.
*
* @see WP_Customize_Setting::__construct()
* @link https://developer.wordpress.org/themes/customize-api
*
* @param WP_Customize_Setting|string $id Customize Setting object, or ID.
* @param array $args Optional. Array of properties for the new Setting object.
* See WP_Customize_Setting::__construct() for information
* on accepted arguments. Default empty array.
* @return WP_Customize_Setting The instance of the setting that was added.
*/