gravityflow_update_button_text_user_input

Description

Use the filter gravityflow_update_button_text_user_input to change the text of the update button on the user input step.

Parameters

ParameterTypeDetails
$textStringButton text
$formFormCurrent form
$stepStepCurrent workflow step

Examples

Change the button to “Submit”.

add_filter( 'gravityflow_update_button_text_user_input', 'sh_gravityflow_update_button_text_user_input', 10, 3 );
function sh_gravityflow_update_button_text_user_input( $text, $form, $step ) {
	return "Submit";
}

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?