woocommerce/woocommerce.php

48 lines
1.0 KiB
PHP
Raw Normal View History

2011-08-10 17:11:11 +00:00
<?php
2012-03-20 13:22:35 +00:00
/**
* Plugin Name: WooCommerce
2016-07-05 22:52:16 +00:00
* Plugin URI: https://woocommerce.com/
2012-03-20 13:22:35 +00:00
* Description: An e-commerce toolkit that helps you sell anything. Beautifully.
2017-08-30 19:27:09 +00:00
* Version: 3.2.0-beta.1
2017-02-09 17:08:39 +00:00
* Author: Automattic
* Author URI: https://woocommerce.com
2016-06-14 13:38:43 +00:00
* Requires at least: 4.4
2016-12-15 16:44:58 +00:00
* Tested up to: 4.7
2012-08-07 08:38:08 +00:00
*
2012-03-20 13:22:35 +00:00
* Text Domain: woocommerce
* Domain Path: /i18n/languages/
2012-08-07 08:38:08 +00:00
*
2012-03-20 13:22:35 +00:00
* @package WooCommerce
* @category Core
2017-02-09 17:08:39 +00:00
* @author Automattic
2012-03-20 13:22:35 +00:00
*/
2014-01-08 15:30:06 +00:00
if ( ! defined( 'ABSPATH' ) ) {
exit; // Exit if accessed directly.
2014-01-08 15:30:06 +00:00
}
2011-08-10 17:11:11 +00:00
// Define WC_PLUGIN_FILE.
if ( ! defined( 'WC_PLUGIN_FILE' ) ) {
define( 'WC_PLUGIN_FILE', __FILE__ );
}
// Include the main WooCommerce class.
if ( ! class_exists( 'WooCommerce' ) ) {
include_once dirname( __FILE__ ) . '/includes/class-woocommerce.php';
}
/**
* Main instance of WooCommerce.
*
* Returns the main instance of WC to prevent the need to use globals.
*
* @since 2.1
2013-09-25 13:10:40 +00:00
* @return WooCommerce
*/
function wc() {
return WooCommerce::instance();
}
2011-12-08 12:50:50 +00:00
// Global for backwards compatibility.
$GLOBALS['woocommerce'] = wc();