WP_Customize_Partial::json(): array

In this article

Retrieves the data to export to the client via JSON.

Return

array Array of parameters passed to the JavaScript.

Source

public function json() {	$exports = array(	'settings' => $this->settings,	'primarySetting' => $this->primary_setting,	'selector' => $this->selector,	'type' => $this->type,	'fallbackRefresh' => $this->fallback_refresh,	'containerInclusive' => $this->container_inclusive,	);	return $exports; } 

Changelog

VersionDescription
4.5.0Introduced.

User Contributed Notes

You must log in before being able to contribute a note or feedback.