-
Notifications
You must be signed in to change notification settings - Fork 0
/
woonti.php
48 lines (42 loc) · 1.03 KB
/
woonti.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
<?php
/**
* Plugin Name: WooNti
* Plugin URI: https://woonti.ziscod.com/
* Description: Improves notifications for your WooCommerce store.
* Version: 1.0.0
* Author: al5dy
* Author URI: https://ziscod.com
*
* License: GPLv3
* License URI: https://www.gnu.org/licenses/gpl-3.0.html
* Text Domain: woonti
* Domain Path: /languages/
*
* @package WooNti
*/
if ( ! defined( 'ABSPATH' ) ) {
exit; // Exit if accessed directly.
}
// Define WN_PLUGIN_FILE.
if ( ! defined( 'WN_PLUGIN_FILE' ) ) {
define( 'WN_PLUGIN_FILE', __FILE__ );
}
// Include the main WooNti class.
if ( ! class_exists( 'WooNti' ) ) {
include_once dirname( __FILE__ ) . '/includes/class-woonti.php';
}
/**
* Main instance of WooNti.
*
* Returns the main instance of WooNti to prevent the need to use globals.
*
* @since 1.0.0
* @return WooNti
*/
if ( ! function_exists( 'woonti' ) ) {
function woonti() {
return WooNti::instance();
}
// Global for backwards compatibility.
$GLOBALS['woonti'] = woonti();
}