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.


Top ↑

Source

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

	final public function id_data() {
		return $this->id_data;
	}

Top ↑

Changelog

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