Woocommerce template file added
authorLaury GvR <laury@gaslightmedia.com>
Wed, 9 May 2018 14:27:29 +0000 (10:27 -0400)
committerLaury GvR <laury@gaslightmedia.com>
Wed, 9 May 2018 14:27:29 +0000 (10:27 -0400)
woocommerce.php [new file with mode: 0644]

diff --git a/woocommerce.php b/woocommerce.php
new file mode 100644 (file)
index 0000000..f28376e
--- /dev/null
@@ -0,0 +1,43 @@
+<?php
+/**
+ * Plugin Name: WooCommerce
+ * Plugin URI: https://woocommerce.com/
+ * Description: An eCommerce toolkit that helps you sell anything. Beautifully.
+ * Version: 3.3.5
+ * Author: Automattic
+ * Author URI: https://woocommerce.com
+ *
+ * Text Domain: woocommerce
+ * Domain Path: /i18n/languages/
+ *
+ * @package WooCommerce
+ */
+
+if ( ! defined( 'ABSPATH' ) ) {
+       exit; // Exit if accessed directly.
+}
+
+// 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
+ * @return WooCommerce
+ */
+function wc() {
+       return WooCommerce::instance();
+}
+
+// Global for backwards compatibility.
+$GLOBALS['woocommerce'] = wc();