flowcrafter_new_workflow_status
Description
Filters the status assigned to a new workflow.
Return active to make new workflows live immediately. Any other value
falls back to inactive so a typo cannot create an unexpected status.
Usage
Change the status assigned to new workflows.
add_filter( 'flowcrafter_new_workflow_status', 'my_custom_function' );Parameters
$status
string
Default workflow status.
$form_id
int|null
The GF form ID, or null for a global workflow.
$name
string
Workflow name.
$graph
array
Normalized workflow graph.
Examples
Change the status assigned to new workflows
add_filter( 'flowcrafter_new_workflow_status', fn() => 'active' );Since
1.0-beta-1Hook added.