PluginProbe
ReviewX – Multi-Criteria Reviews for WooCommerce with Google Reviews & Schema / trunk
ReviewX – Multi-Criteria Reviews for WooCommerce with Google Reviews & Schema vtrunk
2.5.1 2.5.0 2.4.1 2.4.0 2.3.11 2.3.10 trunk 1.0.0 1.0.1 1.0.2 1.0.3 1.0.4 1.0.5 1.0.6 1.1.0 1.1.1 1.1.10 1.1.11 1.1.12 1.1.13 1.1.2 1.1.3 1.1.4 1.1.5 1.1.6 All 143 releases
reviewx / app / Rest / Controllers / AccessController.php

AccessController.php in ReviewX – Multi-Criteria Reviews for WooCommerce with Google Reviews & Schema trunk, at app/Rest/Controllers/AccessController.php

31 lines 649 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2
3 namespace ReviewX\Rest\Controllers;
4
5 \defined("ABSPATH") || exit;
6 class AccessController
7 {
8 public function adminAccess($request)
9 {
10 // do something
11 //dd('Access Controller');
12 $command = $request->get_params()['command'];
13 //dd($command);
14 if ($command === 'site_block') {
15 $this->siteBlock();
16 } elseif ($command === 'site_hit') {
17 $this->siteHit();
18 }
19 }
20 private function siteBlock()
21 {
22 // do something
23 dd('Site Block Method');
24 }
25 private function siteHit()
26 {
27 // do something
28 dd('Site Hit Method');
29 }
30 }
31