-
Notifications
You must be signed in to change notification settings - Fork 1
/
sendy-fulfillement-woocomerce-plugin.php
62 lines (42 loc) · 1.6 KB
/
sendy-fulfillement-woocomerce-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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
<?php
/*
Plugin Name: Sendy Fulfillment
Plugin URI: https://gitlab.com/sendy/sendy-fulfillement-woocomerce-plugin
Description: Plugin to allow automation of consignment and delivery with Sendy Fulfillment.
Version: 2.0.1
Author: Sendy Engineering
License: GPLv2 or later
Text Domain: sendy-fulfillment
*/
// If this file is called directly, abort.
if (!defined('WPINC')) {
die;
}
define('SENDY_FULFILLMENT_WOOCOMMERCE_VERSION', '2.0.1');
function activate_sendy_fulfillment()
{
require_once plugin_dir_path(__FILE__) . 'includes/class-sendy-fulfillment-activator.php';
Sendy_Fulfillment_Activator::activate();
}
function deactivate_sendy_fulfillment()
{
require_once plugin_dir_path(__FILE__) . 'includes/class-sendy-fulfillment-deactivator.php';
Sendy_Fulfillment_Deactivator::deactivate();
}
register_activation_hook(__FILE__, 'activate_sendy_fulfillment');
register_deactivation_hook(__FILE__, 'deactivate_sendy_fulfillment');
require plugin_dir_path( __FILE__ ) . 'includes/class-sendy-fulfillment.php';
require plugin_dir_path( __FILE__ ) . 'includes/class-sendy-fulfillment-settings.php';
require plugin_dir_path( __FILE__ ) . 'includes/class-sendy-fulfillment-inventory.php';
require plugin_dir_path( __FILE__ ) . 'includes/class-sendy-fulfillment-location.php';
require plugin_dir_path( __FILE__ ) . 'includes/class-sendy-fulfillment-tracking.php';
require plugin_dir_path( __FILE__ ) . 'includes/class-sendy-fulfillment-orders.php';
/**
* This function goes last
*/
function run_sendy_fulfillment()
{
$plugin = new Sendy_Fulfillment();
$plugin->run();
}
run_sendy_fulfillment();