PluginProbe
Subscriptions for WooCommerce with Stripe Recurring Payments / 2.0.0
Subscriptions for WooCommerce with Stripe Recurring Payments v2.0.0
2.0.0 1.11.2 1.11.1 1.11.0 1.10.9 1.10.8 1.10.7 1.10.6 1.10.5 1.10.4 1.10.3 1.10.2 1.10.1 1.10.0 1.9.6 1.9.5 trunk 1.3.0 1.3.1 1.3.2 1.4.0 1.4.1 1.4.2 1.5.0 1.5.1 All 61 releases
subscription / includes / API.php

API.php in Subscriptions for WooCommerce with Stripe Recurring Payments 2.0.0, at includes/API.php

34 lines 472 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 /**
3 * REST API bootstrap.
4 *
5 * @package SpringDevs\Subscription
6 */
7
8 namespace SpringDevs\Subscription;
9
10 use SpringDevs\Subscription\Api\PlanController;
11
12 /**
13 * API Class
14 */
15 class API {
16
17
18 /**
19 * Initialize the class
20 */
21 public function __construct() {
22 add_action( 'rest_api_init', array( $this, 'register_api' ) );
23 }
24
25 /**
26 * Register the API
27 *
28 * @return void
29 */
30 public function register_api() {
31 ( new PlanController() )->register_routes();
32 }
33 }
34