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
← All changes | includes/Frontend.php +12 -0 1.5.12.0.0 View file →
@@ -1,5 +1,10 @@
1 1 <?php
2 +/**
3 + * Frontend bootstrap.
4 + *
5 + * @package SpringDevs\Subscription
6 + */
2 7
3 8 namespace SpringDevs\Subscription;
4 9
5 10 use SpringDevs\Subscription\Frontend\ActionController;
@@ -6,8 +11,9 @@
6 11 use SpringDevs\Subscription\Frontend\Cart;
7 12 use SpringDevs\Subscription\Frontend\Downloadable;
8 13 use SpringDevs\Subscription\Frontend\MyAccount;
9 14 use SpringDevs\Subscription\Frontend\Order as FrontendOrder;
15 +use SpringDevs\Subscription\Frontend\Plans;
10 16 use SpringDevs\Subscription\Frontend\Product;
11 17
12 18 /**
13 19 * Frontend handler class
@@ -18,8 +24,14 @@
18 24 * Frontend constructor.
19 25 */
20 26 public function __construct() {
21 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 + }
22 34 new Cart();
23 35 new FrontendOrder();
24 36 new ActionController();
25 37 new MyAccount();