Autoload::register()
Register the autoloader.
Description
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.
Return
(void)
Source
File: wp-includes/Requests/src/Autoload.php
public static function register() {
if (defined('REQUESTS_AUTOLOAD_REGISTERED') === false) {
spl_autoload_register([self::class, 'load'], true);
define('REQUESTS_AUTOLOAD_REGISTERED', true);
}
}