WP_Customize_Partial::json
Retrieves the data to export to the client via JSON.
Метод класса: WP_Customize_Partial{}
Хуков нет.
Возвращает
array. Array of parameters passed to the JavaScript.
Использование
$WP_Customize_Partial = new WP_Customize_Partial(); $WP_Customize_Partial->json();
Список изменений
| С версии 4.5.0 | Введена. |
Код WP_Customize_Partial::json() WP Customize Partial::json WP 7.1
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;
}