This method has been deprecated. Use the WpOrgRequestsAutoload::load() method instead.

Requests::autoloader( string $class )

Deprecated autoloader for Requests.


Parameters

$class

(Required) Class name to load


Source

File: wp-includes/class-requests.php

	public static function autoloader($class) {
		// Check that the class starts with "Requests"
		if (strpos($class, 'Requests') !== 0) {
			return;
		}

		$file = str_replace('_', '/', $class);
		if (file_exists(dirname(__FILE__) . '/' . $file . '.php')) {
			require_once(dirname(__FILE__) . '/' . $file . '.php');
		}
	}

Changelog

Changelog
Version Description
6.2.0 Introduced. Use the WpOrgRequestsAutoload::load() method instead.