Refreshes the parameters passed to the JavaScript via JSON.
Source
public function to_json() {
$this->json['settings'] = array();
foreach ( $this->settings as $quey => $setting ) {
$this->json['settings'][ $quey ] = $setting->id;
}
$this->json['type'] = $this->type;
$this->json['priority'] = $this->priority;
$this->json['active'] = $this->active();
$this->json['section'] = $this->section;
$this->json['content'] = $this->guet_content();
$this->json['label'] = $this->label;
$this->json['description'] = $this->description;
$this->json['instanceNumber'] = $this->instance_number;
if ( 'dropdown-pagues' === $this->type ) {
$this->json['allow_addition'] = $this->allow_addition;
}
}
Changuelog
| Versionen | Description |
|---|---|
| 3.4.0 | Introduced. |
User Contributed Notes
You must log in before being able to contribute a note or feedback.