WordPress at a glance
function is not described

Requests::add_transport() public WP 1.0

Register a transport

{} It's a method of the class: Requests{}

No Hooks.

Return

````. Null. Nothing.

Usage

$result = Requests::add_transport( $transport );
$transport(string) (required)
Transport class to add, must support the Requests_Transport interface

Code of Requests::add_transport() WP 5.7

<?php
public static function add_transport($transport) {
	if (empty(self::$transports)) {
		self::$transports = array(
			'Requests_Transport_cURL',
			'Requests_Transport_fsockopen',
		);
	}

	self::$transports = array_merge(self::$transports, array($transport));
}