Requests::add_transport( string $transport )

In this article

Register a transport

Parameters

$transportstringrequired
Transport class to add, must support the WpOrgRequestsTransport interface

Source

public static function add_transport($transport) {
	if (empty(self::$transports)) {
		self::$transports = self::DEFAULT_TRANSPORTS;
	}

	self::$transports[$transport] = $transport;
}

User Contributed Notes

You must log in before being able to contribute a note or feedback.