PluginProbe
Subscriptions for WooCommerce with Stripe Recurring Payments / 1.10.0
Subscriptions for WooCommerce with Stripe Recurring Payments v1.10.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 / Admin.php

Admin.php in Subscriptions for WooCommerce with Stripe Recurring Payments 1.10.0, at includes/Admin.php

59 lines 1.4 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2
3 namespace SpringDevs\Subscription;
4
5 use SpringDevs\Subscription\Admin\Integrations;
6 use SpringDevs\Subscription\Admin\Required;
7 use SpringDevs\Subscription\Admin\Links;
8 use SpringDevs\Subscription\Admin\Menu;
9 use SpringDevs\Subscription\Admin\Order as AdminOrder;
10 use SpringDevs\Subscription\Admin\Product;
11 use SpringDevs\Subscription\Admin\Settings;
12 use SpringDevs\Subscription\Admin\Subscriptions;
13 use SpringDevs\Subscription\Illuminate\Comments;
14
15 /**
16 * The admin class
17 */
18 class Admin {
19
20 /**
21 * Initialize the class
22 */
23 public function __construct() {
24 $this->dispatch_actions();
25 if ( ! function_exists( 'is_plugin_active' ) ) {
26 include_once ABSPATH . 'wp-admin/includes/plugin.php';
27 }
28 // Only show required plugins notice if Pro is NOT active
29 if ( ! is_plugin_active( 'subscription-pro/subscription-pro.php' ) ) {
30 if ( ! is_plugin_active( 'woocommerce/woocommerce.php' ) ) {
31 // Show required notice only, do not load other admin content
32 new Required();
33 return;
34 } else {
35 new Required();
36 }
37 }
38 // Only load admin content if WooCommerce is active
39 if ( is_plugin_active( 'woocommerce/woocommerce.php' ) ) {
40 new Menu();
41 new Integrations();
42 new Product();
43 new Subscriptions();
44 new AdminOrder();
45 new Comments();
46 new Settings();
47 new Links();
48 }
49 }
50
51 /**
52 * Dispatch and bind actions
53 *
54 * @return void
55 */
56 public function dispatch_actions() {
57 }
58 }
59