WP_Customize_Setting::id_data() WordPress Method
The WP_Customize_Setting::id_data() method is used to retrieve the data for a given setting ID. This data can include the setting's type, title, description, and so on. This method is useful for retrieving specific data about a setting, rather than having to loop through all settings data.
WP_Customize_Setting::id_data() #
Get parsed ID data for multidimensional setting.
Return
(array) ID data for multidimensional setting.
- 'base'
(string) ID base - 'keys'
(array) Keys for multidimensional array.
Source
File: wp-includes/class-wp-customize-setting.php
final public function id_data() { return $this->id_data; }
Expand full source codeCollapse full source codeView on TracView on GitHub
Changelog
Version | Description |
---|---|
4.4.0 | Introduced. |