forked from co-cart/co-cart
-
Notifications
You must be signed in to change notification settings - Fork 0
/
cart-rest-api-for-woocommerce.php
46 lines (41 loc) · 1.24 KB
/
cart-rest-api-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
<?php
/**
* Plugin Name: CoCart Lite
* Plugin URI: https://cocart.xyz
* Description: A <strong>RESTful API</strong> made for <strong>WooCommerce</strong>, focusing on <strong>the front-end</strong> of the store helping you to manage shopping carts and allows developers to build a <strong>headless store</strong>.
* Author: Sébastien Dumont
* Author URI: https://sebastiendumont.com
* Version: 3.1.0-rc.5
* Text Domain: cart-rest-api-for-woocommerce
* Domain Path: /languages/
* Requires at least: 5.6
* Requires PHP: 7.3
* WC requires at least: 4.3
* WC tested up to: 6.2
*
* @package CoCart
*/
defined( 'ABSPATH' ) || exit;
if ( ! defined( 'COCART_FILE' ) ) {
define( 'COCART_FILE', __FILE__ );
}
// Include the main CoCart class.
if ( ! class_exists( 'CoCart', false ) ) {
include_once untrailingslashit( plugin_dir_path( COCART_FILE ) ) . '/includes/class-cocart.php';
}
/**
* Returns the main instance of CoCart and only runs if it does not already exists.
*
* @since 2.1.0
* @version 3.0.7
* @return CoCart
*/
if ( ! function_exists( 'CoCart' ) ) {
/**
* Initialize CoCart.
*/
function CoCart() { // phpcs:ignore WordPress.NamingConventions.ValidFunctionName.FunctionNameInvalid
return CoCart::init();
}
CoCart();
}