WordPress at Your Fingertips
function is not described

Requests::add_transport() public WP 1.0

Register a transport

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

No Hooks.


null. Nothing.


$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.8.2

public static function add_transport($transport) {
	if (empty(self::$transports)) {
		self::$transports = array(

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