Create New Item
×
Item Type
File
Folder
Item Name
×
Search file in folder and subfolders...
File Manager
/
wp-content
/
plugins
/
woocommerce
Advanced Search
Upload
New Item
Settings
Back
Back Up
Advanced Editor
Save
<?php defined('ABSPATH') || exit; if (!defined('WC_PLUGIN_FILE')) { define('WC_PLUGIN_FILE', __FILE__); } require __DIR__ . '/src/Autoloader.php'; require __DIR__ . '/src/Packages.php'; if (!\Automattic\WooCommerce\Autoloader::init()) { return; } \Automattic\WooCommerce\Packages::init(); if (!class_exists('WooCommerce', false)) { include_once dirname(WC_PLUGIN_FILE) . '/includes/class-woocommerce.php'; } $GLOBALS['wc_container'] = new Automattic\WooCommerce\Container(); function WC() { return WooCommerce::instance(); } function wc_get_container() : \Psr\Container\ContainerInterface { return $GLOBALS['wc_container']; } $GLOBALS['woocommerce'] = WC();