woocommerce
Last commit date
assets
8 years ago
i18n
8 years ago
includes
8 years ago
sample-data
8 years ago
templates
8 years ago
license.txt
11 years ago
readme.txt
8 years ago
uninstall.php
9 years ago
woocommerce.php
8 years ago
woocommerce.php
44 lines
| 1 | <?php |
| 2 | /** |
| 3 | * Plugin Name: WooCommerce |
| 4 | * Plugin URI: https://woocommerce.com/ |
| 5 | * Description: An eCommerce toolkit that helps you sell anything. Beautifully. |
| 6 | * Version: 3.3.5 |
| 7 | * Author: Automattic |
| 8 | * Author URI: https://woocommerce.com |
| 9 | * |
| 10 | * Text Domain: woocommerce |
| 11 | * Domain Path: /i18n/languages/ |
| 12 | * |
| 13 | * @package WooCommerce |
| 14 | */ |
| 15 | |
| 16 | if ( ! defined( 'ABSPATH' ) ) { |
| 17 | exit; // Exit if accessed directly. |
| 18 | } |
| 19 | |
| 20 | // Define WC_PLUGIN_FILE. |
| 21 | if ( ! defined( 'WC_PLUGIN_FILE' ) ) { |
| 22 | define( 'WC_PLUGIN_FILE', __FILE__ ); |
| 23 | } |
| 24 | |
| 25 | // Include the main WooCommerce class. |
| 26 | if ( ! class_exists( 'WooCommerce' ) ) { |
| 27 | include_once dirname( __FILE__ ) . '/includes/class-woocommerce.php'; |
| 28 | } |
| 29 | |
| 30 | /** |
| 31 | * Main instance of WooCommerce. |
| 32 | * |
| 33 | * Returns the main instance of WC to prevent the need to use globals. |
| 34 | * |
| 35 | * @since 2.1 |
| 36 | * @return WooCommerce |
| 37 | */ |
| 38 | function wc() { |
| 39 | return WooCommerce::instance(); |
| 40 | } |
| 41 | |
| 42 | // Global for backwards compatibility. |
| 43 | $GLOBALS['woocommerce'] = wc(); |
| 44 |