Requests::add_transport( string $transport )

Register a transport

Parameters Parameters


(string) (Required) Transport class to add, must support the Requests_Transport interface

Top ↑

Source Source

File: wp-includes/class-requests.php

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

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

Top ↑

User Contributed Notes User Contributed Notes

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