WP_Customize_Themes_Section::json() WordPress Method

The WP_Customize_Themes_Section::json() method is used to get the data for a themes section in JSON format. This data can be used to render the themes section in the Customizer.

WP_Customize_Themes_Section::json() #

Get section parameters for JS.


Return

(array) Exported parameters.


Top ↑

Source

File: wp-includes/customize/class-wp-customize-themes-section.php

	public function json() {
		$exported                = parent::json();
		$exported['action']      = $this->action;
		$exported['filter_type'] = $this->filter_type;

		return $exported;
	}


Top ↑

Changelog

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