WpOrg\Requests
Requests::add_transport()
Register a transport
Method of the class: Requests{}
No Hooks.
Return
null
. Nothing (null).
Usage
$result = Requests::add_transport( $transport );
- $transport(string) (required)
- Transport class to add, must support the \WpOrg\Requests\Transport interface
Requests::add_transport() Requests::add transport code WP 6.6.2
public static function add_transport($transport) { if (empty(self::$transports)) { self::$transports = self::DEFAULT_TRANSPORTS; } self::$transports[$transport] = $transport; }