flowcrafter_node_create_entry_node_entry
Description
Filter the entry array before it is inserted. Lets integrations set provenance (created_by, source_url) or massage complex field values (products, file uploads) before the insert.
Usage
Change an entry before it is created.
add_filter( 'flowcrafter_node_create_entry_node_entry', 'my_custom_function' );Parameters
$entry
array
The entry array passed to GFAPI::add_entry().
$node
array
Node definition.
$run
Workflow_Run
Workflow run.
$form
array
Workflow GF form.
Examples
Change an entry before it is created
add_filter( 'flowcrafter_node_create_entry_node_entry', function ( $entry ) {
$entry['created_by'] = get_current_user_id();
return $entry;
} );Since
1.0-beta-1Hook added.