WpOrg\Requests

Autoload::register()public staticWP 1.0

Register the autoloader.

Note: the autoloader is prepended in the autoload queue. This is done to ensure that the Requests 2.0 autoloader takes precedence over a potentially (dependency-registered) Requests 1.x autoloader.

Method of the class: Autoload{}

No Hooks.

Return

null. Nothing (null).

Usage

$result = Autoload::register();

Autoload::register() code WP 6.6.2

public static function register() {
	if (defined('REQUESTS_AUTOLOAD_REGISTERED') === false) {
		spl_autoload_register([self::class, 'load'], true);
		define('REQUESTS_AUTOLOAD_REGISTERED', true);
	}
}