Skip to content

Instantly share code, notes, and snippets.

@chikaibeneme
Last active November 1, 2024 06:09
Show Gist options
  • Select an option

  • Save chikaibeneme/2d1cd36d61b55bc68f162d8f2903fa8c to your computer and use it in GitHub Desktop.

Select an option

Save chikaibeneme/2d1cd36d61b55bc68f162d8f2903fa8c to your computer and use it in GitHub Desktop.
Change the name of the registration fields
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