How to rename the Update and Cancel buttons on the Edit Entry page

It's possible to customize the labels of the Update and Cancel buttons on the Edit Entry page:

This code snippet helps you do that:

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;
}

Read here how to add these code samples to your website: Where to put code samples.

Here's the output after using the code above:

Did this answer your question? Thanks for the feedback There was a problem submitting your feedback. Please try again later.

Still need help? Contact Us Contact Us