WpOrg\Requests
Requests::get_transport()
Get a working transport.
Метод класса: Requests{}
Хуков нет.
Возвращает
\WpOrg\Requests\Transport
.
Использование
$result = Requests::get_transport( $capabilities );
- $capabilities(массив)
- -
По умолчанию: []
Код Requests::get_transport() Requests::get transport WP 6.7.1
protected static function get_transport(array $capabilities = []) { $class = self::get_transport_class($capabilities); if ($class === '') { throw new Exception('No working transports found', 'notransport', self::$transports); } return new $class(); }