WpOrg\Requests
Autoload::register
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.
Метод класса: Autoload{}
Хуков нет.
Возвращает
null. Ничего (null).
Использование
$result = Autoload::register();
Код Autoload::register() Autoload::register WP 6.9
public static function register() {
if (defined('REQUESTS_AUTOLOAD_REGISTERED') === false) {
spl_autoload_register([self::class, 'load'], true);
define('REQUESTS_AUTOLOAD_REGISTERED', true);
}
}