WordPress at Your Fingertips
function is not described

Automattic\Jetpack\Autoloader\jp75e44bb1769a41d7ab3f080ddf78bcc8

Autoloader_Handler::reset_autoloader() public WC 1.0

Resets the active autoloader and all related global state.

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

No Hooks.

Return

null. Nothing.

Usage

$Autoloader_Handler = new Autoloader_Handler();
$Autoloader_Handler->reset_autoloader();

Code of Autoloader_Handler::reset_autoloader() WC 5.5.2

<?php
public function reset_autoloader() {
	$this->php_autoloader->unregister_autoloader();
	$this->hook_manager->reset();

	// Clear all of the autoloader globals so that older autoloaders don't do anything strange.
	global $jetpack_autoloader_latest_version;
	$jetpack_autoloader_latest_version = null;

	global $jetpack_packages_classmap;
	$jetpack_packages_classmap = array(); // Must be array to avoid exceptions in old autoloaders!

	global $jetpack_packages_psr4;
	$jetpack_packages_psr4 = array(); // Must be array to avoid exceptions in old autoloaders!

	global $jetpack_packages_filemap;
	$jetpack_packages_filemap = array(); // Must be array to avoid exceptions in old autoloaders!
}