Requests::add_transport

Advertisement

Summery Summery

Register a transport

Syntax Syntax

Requests::add_transport( string $transport )

Parameters Parameters

$transport

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

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));
	}

Advertisement

Advertisement

Leave a Reply