Skip to content

Instantly share code, notes, and snippets.

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 lukecav/e11b49c7af381df0c0629877c9c8806b to your computer and use it in GitHub Desktop.
Save lukecav/e11b49c7af381df0c0629877c9c8806b 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 gf_change_first_name( $label, $form_id ){
return "First Name";
}
add_filter( 'gform_name_first', 'gf_change_first_name', 10, 2 );
function gf_change_last_name( $label, $form_id ){
return "Last Name";
}
add_filter( 'gform_name_last', 'gf_change_last_name', 10, 2 );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment