Description
The gravityflow_is_delayed_pre_process_workflow filter allows developers to control whether the processing of a Gravity Flow workflow should be delayed for a specific entry and form.
Note: you can use gform_is_delayed_pre_process_feed filter together to coordinate payment processing and workflow steps.
Usage
add_filter( 'gravityflow_is_delayed_pre_process_workflow', 'your_function_name', 10, 3 );
Parameters
| Parameter | Type | Details |
|---|---|---|
| $is_delayed | bool | Indicates if processing of the workflow should be delayed. |
| $entry | array | The current entry array. |
| $form | array | The current form array. |
Examples
Delay workflow processing based on a custom field value.
add_filter( 'gravityflow_is_delayed_pre_process_workflow', 'my_custom_delay_workflow', 10, 3 );
function my_custom_delay_workflow( $is_delayed, $entry, $form ) {
// Delay workflow if the value of field ID 5 is 'pending'
if ( rgar( $entry, '5' ) === 'pending' ) {
$is_delayed = true;
}
return $is_delayed;
}
Source Code
This filter is located in wp-content/plugins/gravityflow/class-gravity-flow.php