-
Notifications
You must be signed in to change notification settings - Fork 0
/
wc-cart-automation.php
37 lines (30 loc) · 1013 Bytes
/
wc-cart-automation.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
<?php
/**
* Plugin Name: Shop Cart Automation
* Plugin URI: https://github.com/timotheemoulin/wc-cart-automation
* Description: Enhance your sales with custom cart automation process.
* Author: Timothée Moulin
* Author URI: https://github.com/timotheemoulin
* Text Domain: wc-cart-automation
* Domain Path: /languages
* Version: 0.2.0
*
* @package Wc_Promo_Cart
*/
defined( 'ABSPATH' ) || exit;
if ( ! defined( 'WCCA_PLUGIN_FILE' ) ) {
define( 'WCCA_PLUGIN_FILE', __FILE__ );
}
if ( ! defined( 'WCCA_PLUGIN_NAME' ) ) {
define( 'WCCA_PLUGIN_NAME', 'wc-cart-automation' );
}
// Just register translations for the plugin data
__( 'Shop Cart Automation', WCCA_PLUGIN_NAME );
__( 'Enhance your sales with custom cart automation process.', WCCA_PLUGIN_NAME );
// Include the autoloader.
include_once dirname( WCCA_PLUGIN_FILE ) . '/includes/autoloader.php';
function wcca(): WCCA\WCCA {
return WCCA\WCCA::instance();
}
// Init everything
wcca();