gravityflow_next_step

Description

The gravityflow_next_step filter allows the next step in the workflow to be customized.

Parameters

ParameterTypeDetails
$stepBoolean or StepThe next step.
$current_stepStepThe current step.
$entryEntryThe current entry array.
$formFormThe current form array.
$stepsArray of StepsThe 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?