at path:
ROOT
/
wp-content
/
plugins
/
woocommerce
/
src
/
Autoloader.php
run:
R
W
Run
Admin
DIR
2026-04-15 05:42:46
R
W
Run
Blocks
DIR
2026-04-15 05:42:46
R
W
Run
Caches
DIR
2026-04-15 05:42:46
R
W
Run
Caching
DIR
2026-04-15 05:42:46
R
W
Run
Checkout
DIR
2026-04-15 05:42:38
R
W
Run
Database
DIR
2026-04-15 05:42:38
R
W
Run
Enums
DIR
2026-04-15 05:42:46
R
W
Run
Gateways
DIR
2026-04-15 05:42:38
R
W
Run
Internal
DIR
2026-04-15 05:42:47
R
W
Run
LayoutTemplates
DIR
2026-04-15 05:42:47
R
W
Run
Proxies
DIR
2026-04-15 05:42:47
R
W
Run
StoreApi
DIR
2026-04-15 05:42:47
R
W
Run
Utilities
DIR
2026-04-15 05:42:47
R
W
Run
Autoloader.php
2.03 KB
2026-04-15 05:42:46
R
W
Run
Delete
Rename
Container.php
2.8 KB
2026-04-15 05:42:46
R
W
Run
Delete
Rename
Deprecated.php
588 By
2026-04-15 05:42:46
R
W
Run
Delete
Rename
Packages.php
12.4 KB
2026-04-15 05:42:47
R
W
Run
Delete
Rename
error_log
up
📄
Autoloader.php
Save
<?php /** * Includes the composer Autoloader used for packages and classes in the src/ directory. */ namespace Automattic\WooCommerce; defined( 'ABSPATH' ) || exit; /** * Autoloader class. * * @since 3.7.0 */ class Autoloader { /** * Static-only class. */ private function __construct() {} /** * Require the autoloader and return the result. * * If the autoloader is not present, let's log the failure and display a nice admin notice. * * @return boolean */ public static function init() { $autoloader = dirname( __DIR__ ) . '/vendor/autoload_packages.php'; if ( ! is_readable( $autoloader ) ) { self::missing_autoloader(); return false; } $autoloader_result = require $autoloader; if ( ! $autoloader_result ) { return false; } return $autoloader_result; } /** * If the autoloader is missing, add an admin notice. */ protected static function missing_autoloader() { if ( defined( 'WP_DEBUG' ) && WP_DEBUG ) { // This message is not translated as at this point it's too early to load translations. error_log( // phpcs:ignore esc_html( 'Your installation of WooCommerce is incomplete. If you installed WooCommerce from GitHub, please refer to this document to set up your development environment: https://developer.woocommerce.com/docs/contribution/contributing/#setting-up-your-development-environment' ) ); } add_action( 'admin_notices', function () { ?> <div class="notice notice-error"> <p> <?php printf( /* translators: 1: is a link to a support document. 2: closing link */ esc_html__( 'Your installation of WooCommerce is incomplete. If you installed WooCommerce from GitHub, %1$splease refer to this document%2$s to set up your development environment.', 'woocommerce' ), '<a href="' . esc_url( 'https://developer.woocommerce.com/docs/contribution/contributing/#setting-up-your-development-environment' ) . '" target="_blank" rel="noopener noreferrer">', '</a>' ); ?> </p> </div> <?php } ); } }