Requests::autoloader()public staticWP 1.0

Deprecated from version 6.2.0. It is no longer supported and can be removed in future releases. Use `WpOrg\Requests\Autoload::load()` method instead.

Deprecated autoloader for Requests.

Method of the class: Requests{}

No Hooks.

Return

null. Nothing (null).

Usage

$result = Requests::autoloader( $class );
$class(string) (required)
Class name to load

Changelog

Deprecated since 6.2.0 Use the WpOrg\Requests\Autoload::load() method instead.

Requests::autoloader() code WP 6.5.2

public static function autoloader($class) {
	if (class_exists('WpOrg\Requests\Autoload') === false) {
		require_once __DIR__ . '/Requests/src/Autoload.php';
	}

	return WpOrg\Requests\Autoload::load($class);
}