PluginProbe
Subscriptions for WooCommerce with Stripe Recurring Payments / 2.4.0
Subscriptions for WooCommerce with Stripe Recurring Payments v2.4.0
2.4.0 2.3.0 2.2.0 2.1.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 All 65 releases
← All changes | includes/Admin.php +21 -0 1.10.1 → 2.4.0 View file →
@@ -1,14 +1,19 @@
1 1 <?php
2 2
3 3 namespace SpringDevs\Subscription;
4 4
5 +use SpringDevs\Subscription\Admin\Dashboard;
5 6 use SpringDevs\Subscription\Admin\Integrations;
6 7 use SpringDevs\Subscription\Admin\Required;
7 8 use SpringDevs\Subscription\Admin\Links;
9 +use SpringDevs\Subscription\Admin\CancellationFlow;
8 10 use SpringDevs\Subscription\Admin\Menu;
9 11 use SpringDevs\Subscription\Admin\Order as AdminOrder;
12 +use SpringDevs\Subscription\Admin\Plans;
10 13 use SpringDevs\Subscription\Admin\Product;
14 +use SpringDevs\Subscription\Admin\ProductList;
15 +use SpringDevs\Subscription\Admin\ProSettingsFields;
11 16 use SpringDevs\Subscription\Admin\Settings;
12 17 use SpringDevs\Subscription\Admin\Subscriptions;
13 18 use SpringDevs\Subscription\Illuminate\Comments;
14 19
@@ -37,14 +42,20 @@
37 42 }
38 43 // Only load admin content if WooCommerce is active
39 44 if ( is_plugin_active( 'woocommerce/woocommerce.php' ) ) {
40 45 new Menu();
46 + new Dashboard();
47 + new Plans();
48 + new CancellationFlow();
49 + new Product\Plans();
41 50 new Integrations();
42 51 new Product();
52 + new ProductList();
43 53 new Subscriptions();
44 54 new AdminOrder();
45 55 new Comments();
46 56 new Settings();
57 + new ProSettingsFields();
47 58 new Links();
48 59 }
49 60 }
50 61
@@ -53,6 +64,16 @@
53 64 *
54 65 * @return void
55 66 */
56 67 public function dispatch_actions() {
68 + add_action( 'save_post_product', array( $this, 'flush_gsc_cache' ) );
69 + }
70 +
71 + /**
72 + * Bust the GSC product-exists cache when any product is saved.
73 + *
74 + * @return void
75 + */
76 + public function flush_gsc_cache() {
77 + delete_transient( 'subscrpt_has_enabled_product' );
57 78 }
58 79 }