GC_Customize_Panel::json()
最后更新于:2021-11-27 06:59:20
GC_Customize_Panel::json()Gather the parameters passed to client JavaScript via JSON.
响应
(array) The array to be exported to the client as JSON.
源文件
文件: gc-includes/class-gc-customize-panel.php
public function json() {
$array = gc_array_slice_assoc( (array) $this, array( 'id', 'description', 'priority', 'type' ) );
$array['title'] = html_entity_decode( $this->title, ENT_QUOTES, get_bloginfo( 'charset' ) );
$array['content'] = $this->get_content();
$array['active'] = $this->active();
$array['instanceNumber'] = $this->instance_number;
$array['autoExpandSoleSection'] = $this->auto_expand_sole_section;
return $array;
}