Requests::add_transport( string $transport )

Register a transport


Description Description


Parameters Parameters

$transport

(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(
				'Requests_Transport_cURL',
				'Requests_Transport_fsockopen',
			);
		}

		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.