Last active
November 1, 2024 06:11
-
-
Save chikaibeneme/54c5a6950827fad150f2e032f0350ac1 to your computer and use it in GitHub Desktop.
Change the attendee registration default field name.
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
| <?php //Do not copy this line | |
| 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