flowcrafter_node_http_request_node_output

  1. Description
  2. Usage
  3. Parameters
  4. Examples
    1. Change an HTTP Request node output
  5. Since

Description

Filter the node output after receiving the HTTP response. Extensions can augment the output with mapped response fields, parsed data, or other post-processing.

Usage

Change an HTTP Request node output.

add_filter( 'flowcrafter_node_http_request_node_output', 'my_custom_function' );

Parameters

$output array

Output data (status_code, headers, body).

$response array|WP_Error

Raw HTTP response from wp_remote_request().

$node array

Node definition.

$run Workflow_Run

Workflow run.

$form array

GF form array.

Examples

Change an HTTP Request node output

add_filter( 'flowcrafter_node_http_request_node_output', function ( $output ) {
    $output['custom'] = true;
    return $output;
} );

Since

  • 1.0-beta-1 Hook added.