requests-{$hook} WordPress Action Hook

The requests-{$hook} hook is used to modify or cancel a request before it is processed. This hook can be used to for example modify the request data before it is sent to the server, or to cancel the request entirely.

do_action_ref_array( "requests-{$hook}", array $parameters, array $request, string $url ) #

Transforms a native Request hook to a WordPress action.


Description

This action maps Requests internal hook to a native WordPress action.

Top ↑

See also


Top ↑

Parameters

$parameters

(array)Parameters from Requests internal hook.

$request

(array)Request data in WP_Http format.

$url

(string)URL to request.


Top ↑

Source

File: wp-includes/class-wp-http-requests-hooks.php

View on Trac



Top ↑

Changelog

Changelog
VersionDescription
4.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.