Summery Summery
Register a transport
Syntax Syntax
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)); }