Description
The gravityflow_next_step filter allows the next step in the workflow to be customized.
Parameters
Parameter | Type | Details |
---|---|---|
$step | Boolean or Step | The next step. |
$current_step | Step | The current step. |
$entry | Entry | The current entry array. |
$form | Form | The current form array. |
$steps | Array of Steps | The steps for current form. |
Examples
1 2 3 4 5 6 | add_filter( 'gravityflow_next_step' , 'sh_gravityflow_next_step' , 10, 4 ); function sh_gravityflow_next_step( $step , $current_step , $entry , $steps ) { // Do something here.. return $step ; } |
Placement
This code can be used in the functions.php file of the active theme, a custom functions plugin, a custom add-on, or with a code snippets plugin.
See also the PHP section in this article: Where Do I Put This Code?