gravityflow_complete_label_user_input

Description

The gravityflow_complete_label_user_input filter allows the ‘Complete’ label to be modified on the User Input step.

Parameters

ParameterTypeDetails
$complete_labelStringThe ‘Complete’ label.
$stepStepThe workflow step.

Examples

Customize the label when completing user input step.

1
2
3
4
add_filter( 'gravityflow_complete_label_user_input', 'sh_filter_gravityflow_complete_label_user_input', 10, 2 );
    function sh_filter_gravityflow_complete_label_user_input( $complete_label, $step ) {
        return 'Finished editing';
    }

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?