flowcrafter_new_workflow_status

  1. Description
  2. Usage
  3. Parameters
  4. Examples
    1. Change the status assigned to new workflows
  5. Since

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-1 Hook added.