Last active
November 1, 2024 06:09
-
-
Save chikaibeneme/2d1cd36d61b55bc68f162d8f2903fa8c to your computer and use it in GitHub Desktop.
Change the name of the registration fields
This file contains hidden or 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
| add_filter( 'tribe_tickets_plus_attendee_registration_iac_fields', 'modify_attendee_fields' ); | |
| function modify_attendee_fields( $fields ) { | |
| // Check if 'Name' field exists before modifying | |
| if ( isset( $fields['name'] ) ) { | |
| $fields['name']['label'] = 'First Name'; // Change label to 'First Name' | |
| } | |
| // Optionally, you can add other modifications here | |
| // For example, changing placeholder text: | |
| // $fields['Name']['placeholder'] = 'Enter your first name'; | |
| return $fields; // Return modified fields | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment