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 / Frontend.php

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

41 lines 985 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 /**
3 * Frontend bootstrap.
4 *
5 * @package SpringDevs\Subscription
6 */
7
8 namespace SpringDevs\Subscription;
9
10 use SpringDevs\Subscription\Frontend\ActionController;
11 use SpringDevs\Subscription\Frontend\Cart;
12 use SpringDevs\Subscription\Frontend\Downloadable;
13 use SpringDevs\Subscription\Frontend\MyAccount;
14 use SpringDevs\Subscription\Frontend\Order as FrontendOrder;
15 use SpringDevs\Subscription\Frontend\Plans;
16 use SpringDevs\Subscription\Frontend\Product;
17
18 /**
19 * Frontend handler class
20 */
21 class Frontend {
22
23 /**
24 * Frontend constructor.
25 */
26 public function __construct() {
27 new Product();
28 // Pro ships a superset storefront plan UI (multi-plan selector, per-variation
29 // swap) on the same hooks, so free's single-line display runs only when Pro is
30 // absent — otherwise the two would double-render.
31 if ( ! subscrpt_pro_activated() ) {
32 new Plans();
33 }
34 new Cart();
35 new FrontendOrder();
36 new ActionController();
37 new MyAccount();
38 new Downloadable();
39 }
40 }
41