PluginProbe
Pixelavo – Server Side Tracking & Pixel + AI Ads Tools / 1.0.8
Pixelavo – Server Side Tracking & Pixel + AI Ads Tools v1.0.8
1.5.5 1.5.4 trunk 1.0.0 1.0.1 1.0.3 1.0.4 1.0.5 1.0.6 1.0.7 1.0.8 1.0.9 1.1.0 1.1.1 1.1.2 1.1.3 1.1.4 1.1.5 1.1.6 1.1.7 1.1.8 1.1.9 1.2.0 1.2.1 1.2.2 All 47 releases
pixelavo / admin / settings-panel / includes / classes / Api.php

Api.php in Pixelavo – Server Side Tracking & Pixel + AI Ads Tools 1.0.8, at admin/settings-panel/includes/classes/Api.php

40 lines 729 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 namespace PixelavoOpt;
3
4 use WP_REST_Controller;
5
6 /**
7 * REST_API Handler
8 */
9 class Api extends WP_REST_Controller {
10
11 /**
12 * [__construct description]
13 */
14 public function __construct() {
15 $this->includes();
16 add_action('rest_api_init', [$this, 'register_routes']);
17 }
18
19 /**
20 * Include the controller classes
21 *
22 * @return void
23 */
24 private function includes() {
25 if (!class_exists(__NAMESPACE__ . '\Api\Settings')) {
26 require_once __DIR__ . '/Api/Settings.php';
27 }
28
29 }
30
31 /**
32 * Register the API routes
33 *
34 * @return void
35 */
36 public function register_routes() {
37 (new Api\Settings())->register_routes();
38 }
39
40 }