Skip to content

Instantly share code, notes, and snippets.

@Shelob9
Last active December 23, 2016 19:54
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Shelob9/ef8eedc9099737418c5e4a48fc042999 to your computer and use it in GitHub Desktop.
Save Shelob9/ef8eedc9099737418c5e4a48fc042999 to your computer and use it in GitHub Desktop.
<?php
add_filter( 'caldera_forms_render_get_field_type-cfcf_back_nav', function( $field, $form ){
//change your form ID to target a specific form
//remove conditional to target all connected forms
if( 'cf123456' == $form[ 'ID' ] ){
$field[ 'label' ] = 'Next Step';
}
return $field;
}, 10, 2 );
<?php
add_filter( 'caldera_forms_render_get_field_type-cfcf_next_nav', function( $field, $form ){
//change your form ID to target a specific form
//remove conditional to target all connected forms
if( 'cf123456' == $form[ 'ID' ] ){
$field[ 'label' ] = 'Previous Step';
}
return $field;
}, 10, 2 );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment