WordPress at a glance
function is not described


Autoloader_Handler::is_initializing() public WC 1.0

Checks to see whether or not an autoloader is currently in the process of initializing.

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

No Hooks.


true|false. Nothing.


$Autoloader_Handler = new Autoloader_Handler();

Code of Autoloader_Handler::is_initializing() WC 5.3.0

public function is_initializing() {
	// If no version has been set it means that no autoloader has started initializing yet.
	global $jetpack_autoloader_latest_version;
	if ( ! isset( $jetpack_autoloader_latest_version ) ) {
		return false;

	// When the version is set but the classmap is not it ALWAYS means that this is the
	// latest autoloader and is being included by an older one.
	global $jetpack_packages_classmap;
	if ( empty( $jetpack_packages_classmap ) ) {
		return true;

	// Version 2.4.0 added a new global and altered the reset semantics. We need to check
	// the other global as well since it may also point at initialization.
	// Note: We don't need to check for the class first because every autoloader that
	// will set the latest version global requires this class in the classmap.
	$replacing_version = $jetpack_packages_classmap[ AutoloadGenerator::class ]['version'];
	if ( $this->version_selector->is_dev_version( $replacing_version ) || version_compare( $replacing_version, '', '>=' ) ) {
		global $jetpack_autoloader_loader;
		if ( ! isset( $jetpack_autoloader_loader ) ) {
			return true;

	return false;