generated from dougwollison/wp-plugin-system
-
Notifications
You must be signed in to change notification settings - Fork 0
/
order-manager.php
75 lines (65 loc) · 1.43 KB
/
order-manager.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
63
64
65
66
67
68
69
70
71
72
73
74
75
<?php
/*
Plugin Name: Order Manager
Plugin URI: https://github.com/dougwollison/order-manager
Description: Adds order controls for posts and terms
Version: 1.1.0
Author: Doug Wollison
Author URI: http://dougw.me
Tags: order, sort, post order, term order
License: GPL2
Text Domain: order-manager
Domain Path: /languages
*/
// =========================
// ! Constants
// =========================
/**
* Reference to the plugin file.
*
* @since 1.0.0
*
* @var string
*/
define( 'ORDERMANAGER_PLUGIN_FILE', __FILE__ );
/**
* Reference to the plugin directory.
*
* @since 1.0.0
*
* @var string
*/
define( 'ORDERMANAGER_PLUGIN_DIR', dirname( ORDERMANAGER_PLUGIN_FILE ) );
/**
* Reference to the plugin slug.
*
* @since 1.0.0
*
* @var string
*/
define( 'ORDERMANAGER_PLUGIN_SLUG', basename( ORDERMANAGER_PLUGIN_DIR ) . '/' . basename( ORDERMANAGER_PLUGIN_FILE ) );
/**
* Identifies the current plugin version.
*
* @since 1.0.0
*
* @var string
*/
define( 'ORDERMANAGER_PLUGIN_VERSION', '1.1.0' );
/**
* Identifies the current database version.
*
* @since 1.0.0
*
* @var string
*/
define( 'ORDERMANAGER_DB_VERSION', '1.1.0' );
// =========================
// ! Includes
// =========================
require ORDERMANAGER_PLUGIN_DIR . '/includes/autoloader.php';
require ORDERMANAGER_PLUGIN_DIR . '/includes/functions-ordermanager.php';
// =========================
// ! Setup
// =========================
OrderManager\System::setup();