-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
cocart-carts-in-session.php
45 lines (40 loc) · 1.26 KB
/
cocart-carts-in-session.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
<?php
/*
* Plugin Name: CoCart - Carts in Session
* Plugin URI: https://cocart.xyz
* Description: Allows you to view all the carts in session via the WordPress admin.
* Author: Sébastien Dumont
* Author URI: https://sebastiendumont.com
* Version: 1.0.0-alpha.5
* Text Domain: cocart-carts-in-session
* Domain Path: /languages/
*
* Requires at least: 5.4
* Requires PHP: 7.0
* WC requires at least: 4.3
* WC tested up to: 5.1
*
* Copyright: © 2021 Sébastien Dumont, (mailme@sebastiendumont.com)
*
* License: GNU General Public License v3.0
* License URI: http://www.gnu.org/licenses/gpl-3.0.html
*/
defined( 'ABSPATH' ) || exit;
if ( ! defined( 'COCART_CIS_FILE' ) ) {
define( 'COCART_CIS_FILE', __FILE__ );
}
// Include the main CoCart Carts in Session class.
if ( ! class_exists( 'CoCart_Carts_in_Session', false ) ) {
include_once untrailingslashit( plugin_dir_path( COCART_CIS_FILE ) ) . '/includes/class-cocart-carts-in-session.php';
}
/**
* Returns the main instance of CoCart Carts in Session and only runs if it does not already exists.
*
* @return CoCart_Carts_in_Session
*/
if ( ! function_exists( 'CoCart_Carts_in_Session' ) ) {
function CoCart_Carts_in_Session() {
return CoCart_Carts_in_Session::init();
}
CoCart_Carts_in_Session();
}