-
Notifications
You must be signed in to change notification settings - Fork 0
/
wordpress-woocommerce-plugin.php
37 lines (30 loc) · 1.3 KB
/
wordpress-woocommerce-plugin.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
<?php
/**
* Plugin Name: SmartPack - WMS Data Integration
* Description: Full integration with SmartPack WMS API when using WooCommerce as shopping platform.
* Author: SmartPack
* Author URI: https://smartpack.dk
* Version: 0.0.2
* License: GPLv2 or later
* License URI: http://www.gnu.org/licenses/gpl-2.0.html
*/
defined('ABSPATH') || exit;
define('SMARTPACK_WMS_PLUGIN_DIR', plugin_dir_path(__FILE__));
// adding src folder files
require_once 'src/helpers/helpers.php';
require_once 'src/WMSApi/Webhook.php';
require_once 'src/Controllers/WPInit_Controller.php';
require_once 'src/Controllers/AdminSettingsPage_Controller.php';
require_once 'src/Controllers/CLI_Controller.php';
require_once 'src/Controllers/CLI/Product_Controller.php';
require_once 'src/Controllers/CLI/Order_Controller.php';
require_once 'src/Controllers/CLI/Stock_Controller.php';
require_once 'src/Controllers/RestRoutes_Controller.php';
$restController = new SmartPack\WMS\Controllers\RestRoutes_Controller();
$restController->init();
$wpInitController = new SmartPack\WMS\Controllers\WPInit_Controller();
$wpInitController->init();
$adminSettingsPageController = new SmartPack\WMS\Controllers\AdminSettingsPage_Controller();
$adminSettingsPageController->init();
$CLIController = new SmartPack\WMS\Controllers\CLI();
$CLIController->init();