PluginProbe
Independent Analytics – WordPress Analytics Plugin / 2.7.1
Independent Analytics – WordPress Analytics Plugin v2.7.1
2.15.5 2.15.4 2.15.3 2.15.2 2.15.1 2.15.0 2.14.10 trunk 1.1 1.10 1.10.1 1.11 1.12 1.13 1.14 1.15 1.16 1.17 1.17.1 1.17.2 1.17.3 1.17.4 1.18 1.18.1 1.19.0 All 120 releases
independent-analytics / IAWP / AJAX / Real_Time_Data.php
Real_Time_Data.php
23 lines 458 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2
3 namespace IAWP\AJAX;
4
5 use IAWP\Real_Time;
6 /** @internal */
7 class Real_Time_Data extends \IAWP\AJAX\AJAX
8 {
9 protected function action_name() : string
10 {
11 return 'iawp_real_time_data';
12 }
13 protected function requires_pro() : bool
14 {
15 return \true;
16 }
17 protected function action_callback() : void
18 {
19 $real_time = new Real_Time();
20 \wp_send_json_success($real_time->get_real_time_analytics());
21 }
22 }
23