WP_Widget_Area_Customize_Control::to_json
Refreshes the parameters passed to the JavaScript via JSON.
Метод класса: WP_Widget_Area_Customize_Control{}
Хуков нет.
Возвращает
null. Ничего (null).
Использование
$WP_Widget_Area_Customize_Control = new WP_Widget_Area_Customize_Control(); $WP_Widget_Area_Customize_Control->to_json();
Список изменений
| С версии 3.9.0 | Введена. |
Код WP_Widget_Area_Customize_Control::to_json() WP Widget Area Customize Control::to json WP 7.1
public function to_json() {
parent::to_json();
$exported_properties = array( 'sidebar_id' );
foreach ( $exported_properties as $key ) {
$this->json[ $key ] = $this->$key;
}
}