GC_Customize_Partial::json()

最后更新于:2021-11-27 07:21:30

GC_Customize_Partial::json()

Retrieves the data to export to the client via JSON.

响应

(array) Array of parameters passed to the JavaScript.

源文件

文件: gc-includes/customize/class-gc-customize-partial.php

	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;
	}