PluginProbe
Subscriptions for WooCommerce with Stripe Recurring Payments / 1.4.1
Subscriptions for WooCommerce with Stripe Recurring Payments v1.4.1
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.4.1, at includes/Admin.php

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