WP_Customize_Setting::json()
Retrieves the data to export to the client via JSON.
Метод класса: WP_Customize_Setting{}
Хуков нет.
Возвращает
Массив
. Array of parameters passed to JavaScript.
Использование
$WP_Customize_Setting = new WP_Customize_Setting(); $WP_Customize_Setting->json();
Список изменений
С версии 4.6.0 | Введена. |
Код WP_Customize_Setting::json() WP Customize Setting::json WP 6.1.1
public function json() { return array( 'value' => $this->js_value(), 'transport' => $this->transport, 'dirty' => $this->dirty, 'type' => $this->type, ); }