Skip to content

Instantly share code, notes, and snippets.

@rafaehlers
Last active November 4, 2020 08:55
Show Gist options
  • Save rafaehlers/724c9d6c4f36b3ae3d71d7b7800bffe3 to your computer and use it in GitHub Desktop.
Save rafaehlers/724c9d6c4f36b3ae3d71d7b7800bffe3 to your computer and use it in GitHub Desktop.
Rename the Update and Delete buttons on the Edit Entry page
<?php // DO NOT COPY THIS LINE
add_filter( 'gravityview/edit_entry/button_labels', 'gv_modify_edit_entry_buttons', 10, 4 );
function gv_modify_edit_entry_buttons( $labels, $form, $entry, $view_id ){
$labels = array(
'cancel' => __( 'Cancel Update', 'gravityview' ),
'submit' => __( 'Update Entry', 'gravityview'),
'next' => __( 'Next page', 'gravityview'), // for multi-page forms
'previous' => __( 'Previous page', 'gravityview') // for multi-page forms
);
return $labels;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment