-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathwoo-onepage.php
62 lines (57 loc) · 1.95 KB
/
woo-onepage.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
<?php
/*
* Plugin Name: Woo OnePage Checkout Shop
* Version: 1.6.6
* Plugin URI: https://amadercode.com/premium-products/woocommerce-one-page-checkout-shop/
* Description: Create your onepage store where a customer can make his order by choosing products add to cart and checkout.
* Author: AmaderCode Lab
* Author URI: http://www.amadercode.com/
* Requires at least: 4.0
* Tested up to: 6.0.2
* WC tested up to: 6.8.2
* WC requires at least: 3.0
* Text Domain: woocommerce-one-page-checkout-shop
* Domain Path: /lang/
* @package WordPress
*/
if ( ! defined( 'ABSPATH' ) ) exit;
if ( ! defined( 'ACL_WOOSC_PLUGIN_FILE' ) ) {
define( 'ACL_WOOSC_PLUGIN_FILE', __FILE__ );
}
if ( ! defined( 'ACL_WOOSC_VERSION' ) ) {
define('ACL_WOOSC_VERSION', '1.0.0');
}
if ( ! defined( 'ACL_WOOSC_REQUIRED_PHP_VERSION' ) ) {
define('ACL_WOOSC_REQUIRED_PHP_VERSION', '5.4.0');
}
if ( ! defined( 'ACL_WOOSC_WP_VERSION' ) ) {
define('ACL_WOOSC_WP_VERSION', '4.0');
}
if ( ! defined( 'ACL_WOOSC_ABSPATH' ) ) {
define('ACL_WOOSC_ABSPATH', dirname(ACL_WOOSC_PLUGIN_FILE) . '/');
}
if ( ! defined( 'ACL_WOOSC_URL' ) ) {
define('ACL_WOOSC_URL', plugin_dir_url(__FILE__));
}
if ( ! defined( 'ACL_WOOSC_PATH' ) ) {
define('ACL_WOOSC_PATH', plugin_dir_path(__FILE__));
}
if ( ! defined( 'ACL_WOOSC_IMG_URL' ) ) {
define('ACL_WOOSC_IMG_URL', plugin_dir_url(__FILE__) . 'assets/images/');
}
// Load plugin basic class files
include_once( 'includes/class-woosc-plugin.php');
include_once( 'includes/class-woosc-install.php');
/**
* Returns the main instance of WOOSC_Plugin to prevent the need to use globals.
*@since 1.0.0
* @return object WOOSC_Plugin
*/
function acl_woo_onepage_template (){
$instance = ACL_Woo_Onepage_Plugin::instance( __FILE__, ACL_WOOSC_VERSION );
if ( is_null( $instance->settings ) ) {
$instance->settings = ACL_Woo_Onepage_Settings::instance( $instance );
}
return $instance;
}
add_action('plugins_loaded', 'acl_woo_onepage_template');