Created
July 15, 2013 02:01
-
-
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"
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 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