Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save BronsonQuick/5997029 to your computer and use it in GitHub Desktop.
Save BronsonQuick/5997029 to your computer and use it in GitHub Desktop.
Change Gravity Forms name labels from "First" and "Last" to "First Name" and "Last Name"
<?php
function sennza_change_first_name( $label, $form_id ){
return "First Name";
}
add_filter( 'gform_name_first', 'sennza_change_first_name', 10, 2 );
function sennza_change_last_name( $label, $form_id ){
return "Last Name";
}
add_filter( 'gform_name_last', 'sennza_change_last_name', 10, 2 );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment