WpOrg\Requests
Requests::add_transport()
Register a transport
Метод класса: Requests{}
Хуков нет.
Возвращает
null
. Ничего (null).
Использование
$result = Requests::add_transport( $transport );
- $transport(строка) (обязательный)
- Transport class to add, must support the \WpOrg\Requests\Transport interface
Код Requests::add_transport() Requests::add transport WP 6.6.2
public static function add_transport($transport) { if (empty(self::$transports)) { self::$transports = self::DEFAULT_TRANSPORTS; } self::$transports[$transport] = $transport; }