WP_Customize_Setting::json()

Retrieves the data to export to the client via JSON.


Description Description


Return Return

(array) Array of parameters passed to JavaScript.


Top ↑

Source Source

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

	public function json() {
		return array(
			'value'     => $this->js_value(),
			'transport' => $this->transport,
			'dirty'     => $this->dirty,
			'type'      => $this->type,
		);
	}

Top ↑

Changelog Changelog

Changelog
Version Description
4.6.0 Introduced.


Top ↑

User Contributed Notes User Contributed Notes

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