<?php /** * Plugin Name: WooCommerce * Plugin URI: https://woo.com/ * Description: An eCommerce toolkit that helps you sell anything. Beautifully. * Version: 8.5.1 * Author: Automattic * Author URI: https://woo.com * Text Domain: woocommerce * Domain Path: /i18n/languages/ * Requires at least: 6.3 * Requires PHP: 7.4 * * @package WooCommerce */ defined( 'ABSPATH' ) || exit; if ( ! defined( 'WC_PLUGIN_FILE' ) ) { define( 'WC_PLUGIN_FILE', __FILE__ ); } if ( ! defined( 'WC_BLOCKS_IS_FEATURE_PLUGIN' ) ) { define( 'WC_BLOCKS_IS_FEATURE_PLUGIN', true ); } // Test Change // Load core packages and the autoloader. require __DIR__ . '/src/Autoloader.php'; require __DIR__ . '/src/Packages.php'; if ( ! \Automattic\WooCommerce\Autoloader::init() ) { return; } \Automattic\WooCommerce\Packages::init(); // Include the main WooCommerce class. if ( ! class_exists( 'WooCommerce', false ) ) { include_once dirname( WC_PLUGIN_FILE ) . '/includes/class-woocommerce.php'; } // Initialize dependency injection. $GLOBALS['wc_container'] = new Automattic\WooCommerce\Container(); /** * Returns the main instance of WC. * * @since 2.1 * @return WooCommerce */ function WC() { // phpcs:ignore WordPress.NamingConventions.ValidFunctionName.FunctionNameInvalid return WooCommerce::instance(); } /** * Returns the WooCommerce object container. * Code in the `includes` directory should use the container to get instances of classes in the `src` directory. * * @since 4.4.0 * @return \Automattic\WooCommerce\Container The WooCommerce object container. */ function wc_get_container() { return $GLOBALS['wc_container']; } // Global for backwards compatibility. $GLOBALS['woocommerce'] = WC(); // Jetpack's Rest_Authentication needs to be initialized even before plugins_loaded. if ( class_exists( \Automattic\Jetpack\Connection\Rest_Authentication::class ) ) { \Automattic\Jetpack\Connection\Rest_Authentication::init(); }
Name | Type | Size | Permission | Actions |
---|---|---|---|---|
assets | Folder | 0755 |
|
|
client | Folder | 0755 |
|
|
i18n | Folder | 0755 |
|
|
includes | Folder | 0755 |
|
|
lib | Folder | 0755 |
|
|
packages | Folder | 0755 |
|
|
patterns | Folder | 0755 |
|
|
sample-data | Folder | 0755 |
|
|
src | Folder | 0755 |
|
|
templates | Folder | 0755 |
|
|
vendor | Folder | 0755 |
|
|
license.txt | File | 35.47 KB | 0644 |
|
readme.txt | File | 19.59 KB | 0644 |
|
uninstall.php | File | 4.71 KB | 0644 |
|
woocommerce.php | File | 1.9 KB | 0644 |
|