-
Notifications
You must be signed in to change notification settings - Fork 9
/
atum-stock-manager-for-woocommerce.php
executable file
·99 lines (82 loc) · 2.61 KB
/
atum-stock-manager-for-woocommerce.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
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
<?php
/**
* ATUM Inventory Management for WooCommerce
*
* @link https://stockmanagementlabs.com/
* @since 0.0.1
* @package Atum
*
* @wordpress-plugin
* Plugin Name: ATUM Inventory Management for WooCommerce
* Requires Plugins: woocommerce
* Plugin URI: https://stockmanagementlabs.com/
* Description: The ultimate stock management plugin for serious WooCommerce sellers
* Version: 1.9.43.1
* Author: Stock Management Labs™
* Author URI: https://stockmanagementlabs.com/
* Contributors: BE REBEL - https://berebel.studio
* Requires at least: 5.9
* Tested up to: 6.7
* Requires PHP: 7.3
* WC requires at least: 5.0
* WC tested up to: 9.3.3
* Text Domain: atum-stock-manager-for-woocommerce
* Domain Path: /languages
* License: GPLv2 or later
* License URI: http://www.gnu.org/licenses/gpl-2.0.html
*/
defined( 'ABSPATH' ) || die;
if ( ! defined( 'ATUM_VERSION' ) ) {
define( 'ATUM_VERSION', '1.9.43.1' );
}
if ( ! defined( 'ATUM_WC_MINIMUM_VERSION' ) ) {
define( 'ATUM_WC_MINIMUM_VERSION', '5.0' );
}
if ( ! defined( 'ATUM_WP_MINIMUM_VERSION' ) ) {
define( 'ATUM_WP_MINIMUM_VERSION', '5.9' );
}
if ( ! defined( 'ATUM_PHP_MINIMUM_VERSION' ) ) {
define( 'ATUM_PHP_MINIMUM_VERSION', '7.3' );
}
if ( ! defined( 'ATUM_PATH' ) ) {
define( 'ATUM_PATH', plugin_dir_path( __FILE__ ) );
}
if ( ! defined( 'ATUM_URL' ) ) {
define( 'ATUM_URL', plugin_dir_url( __FILE__ ) );
}
if ( ! defined( 'ATUM_BASENAME' ) ) {
define( 'ATUM_BASENAME', plugin_basename( __FILE__ ) );
}
if ( ! defined( 'ATUM_TEXT_DOMAIN' ) ) {
define( 'ATUM_TEXT_DOMAIN', 'atum-stock-manager-for-woocommerce' );
}
if ( ! defined( 'ATUM_SHORT_NAME' ) ) {
define( 'ATUM_SHORT_NAME', 'atum' );
}
if ( ! defined( 'ATUM_PREFIX' ) ) {
define( 'ATUM_PREFIX', 'atum_' );
}
if ( ! defined( 'ATUM_DEBUG' ) ) {
define( 'ATUM_DEBUG', FALSE );
}
// Check minimum PHP version required.
if ( version_compare( phpversion(), ATUM_PHP_MINIMUM_VERSION, '<' ) ) {
add_action( 'admin_notices', function() {
?>
<div class="error fade">
<p>
<strong>
<?php
/* translators: the minimum PHP version */
echo esc_html( sprintf( __( 'ATUM requires PHP version %s or greater. Please, update or contact your hosting provider.', ATUM_TEXT_DOMAIN ), ATUM_PHP_MINIMUM_VERSION ) ); ?>
</strong>
</p>
</div>
<?php
} );
}
else {
// Use Composer's autoloader and PSR4 for naming convention.
require ATUM_PATH . 'vendor/autoload.php';
\Atum\Bootstrap::get_instance();
}