Forked from BronsonQuick/first_name_last_name_gravity_forms.php
Last active
January 10, 2019 17:15
-
-
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"
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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