use_curl_transport WordPress Filter Hook

The use_curl_transport hook is used to send data to and receive data from a remote server using the cURL library. This hook can be used to communicate with APIs or to fetch data from remote servers.

apply_filters( 'use_curl_transport', bool $use_class, array $args ) #

Filters whether cURL can be used as a transport for retrieving a URL.


Parameters

$use_class

(bool)Whether the class can be used. Default true.

$args

(array)An array of request arguments.


Top ↑

Source

File: wp-includes/class-wp-http-curl.php

View on Trac



Top ↑

Changelog

Changelog
VersionDescription
2.7.0Introduced.

The content displayed on this page has been created in part by processing WordPress source code files which are made available under the GPLv2 (or a later version) license by theĀ Free Software Foundation. In addition to this, the content includes user-written examples and information. All material is subject to review and curation by the WPPaste.com community.