LLMS_Analytics_Widget::output()
Output widget.
Return Return
(void)
Source Source
File: includes/abstracts/abstract.llms.analytics.widget.php
public function output() {
$this->set_query();
$this->query();
$this->response = $this->format_response();
if ( $this->charts ) {
$this->chart_data = $this->get_chart_data();
}
header( 'Content-Type: application/json' );
echo wp_json_encode( $this );
wp_die();
}
Expand full source code Collapse full source code View on GitHub
Changelog Changelog
| Version | Description |
|---|---|
| 7.3.0 | Use wp_json_encode in place of the deprecated json_encode. |
| 3.0.0 | Introduced. |