PluginProbe
Better Payment – Instant Payments, Donations, Fundraising with Subscriptions & More / 2.3.2
Better Payment – Instant Payments, Donations, Fundraising with Subscriptions & More v2.3.2
2.3.2 2.3.1 2.3.0 2.2.2 2.2.1 2.2.0 2.1.2 2.1.1 trunk 0.0.1 0.0.2 0.0.3 0.0.4 0.0.5 0.0.6 0.0.7 1.0.0 1.0.1 1.0.2 1.0.3 1.0.4 1.0.5 1.0.6 1.0.7 1.0.8 All 64 releases
better-payment / includes / API.php

API.php in Better Payment – Instant Payments, Donations, Fundraising with Subscriptions & More 2.3.2, at includes/API.php

44 lines 635 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2
3 namespace Better_Payment\Lite;
4
5 use Better_Payment\Lite\API\AdminAPI;
6 use Better_Payment\Lite\API\UserAPI;
7
8 /**
9 * Exit if accessed directly
10 */
11 if (!defined('ABSPATH')) {
12 exit;
13 }
14
15 /**
16 * API Class
17 *
18 * @since 0.0.1
19 */
20 class API extends Controller {
21
22 /**
23 * Initialize the class
24 *
25 * @since 0.0.1
26 */
27 public function __construct() {
28 add_action( 'rest_api_init', [ $this, 'register_api' ] );
29
30 new AdminAPI();
31 new UserAPI();
32 }
33
34 /**
35 * Register the API
36 *
37 * @return void
38 * @since 0.0.1
39 */
40 public function register_api() {
41 //
42 }
43 }
44