Description
Use the gravityflow_save_progress_button_text_user_input filter to change the text of the save progress button on the user input step. In order for this filter to have effect, you must set Save Progress to ‘Submit buttons’ on the step settings.
Parameters
Parameter | Type | Details |
---|---|---|
$save_progress_label | String | The “Save” label |
$form | Form | The form for the current entry. |
$step | Step | The current step. |
Examples
Change the button to “Save Progress”
1 2 3 4 | add_filter( 'gravityflow_save_progress_button_text_user_input' , 'sh_gravityflow_update_save_button_text_user_input' ); function sh_gravityflow_update_save_button_text_user_input( $text ) { return "Save Progress" ; } |
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?