WordPress at Your Fingertips
function is not described

Automattic\WooCommerce

Autoloader::missing_autoloader() protected WC 1.0

If the autoloader is missing, add an admin notice.

{} It's a method of the class: Autoloader{}

No Hooks.

Return

null. Nothing.

Usage

$result = Autoloader::missing_autoloader();

Code of Autoloader::missing_autoloader() WC 5.9.0

<?php
protected static function missing_autoloader() {
	if ( defined( 'WP_DEBUG' ) && WP_DEBUG ) {
		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://github.com/woocommerce/woocommerce/wiki/How-to-set-up-WooCommerce-development-environment', 'woocommerce' )
		);
	}
	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://github.com/woocommerce/woocommerce/wiki/How-to-set-up-WooCommerce-development-environment' ) . '" target="_blank" rel="noopener noreferrer">',
						'</a>'
					);
					?>
				</p>
			</div>
			<?php
		}
	);
}