flowcrafter_node_output

  1. Description
  2. Usage
  3. Parameters
  4. Examples
    1. Change every node output before it is stored
  5. Since

Description

Generic post-execution filter — fires after every node’s execute() returns, can augment or observe the output array.

Usage

Change every node output before it is stored.

add_filter( 'flowcrafter_node_output', 'my_custom_function' );

Parameters

$output array

The node’s output data.

$node array

The node definition.

$run Workflow_Run

The workflow run.

$form array

The GF form array.

Examples

Change every node output before it is stored

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

Since

  • 1.0-beta-1 Hook added.