flowcrafter_node_http_request_node_request_args

  1. Description
  2. Usage
  3. Parameters
  4. Examples
    1. Change the final HTTP request arguments
  5. Since

Description

Filter the request arguments before sending. Runs last, so it has the final word on what is sent — including over a composed request. Note that a composed request may carry credentials in its headers, so treat these args as sensitive.

Usage

Change the final HTTP request arguments.

add_filter( 'flowcrafter_node_http_request_node_request_args', 'my_custom_function' );

Parameters

$request_args array

wp_remote_request() arguments.

$node array

Node definition.

$run Workflow_Run

Workflow run.

$form array

GF form array.

$url string

Request URL, for callbacks that need to sign or inspect the destination.

Examples

Change the final HTTP request arguments

add_filter( 'flowcrafter_node_http_request_node_request_args', function ( $args ) {
    $args['timeout'] = 15;
    return $args;
} );

Since

  • 1.0-beta-1 Hook added.