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
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)); }
Expand full source code Collapse full source code View on Trac