WP Manifestindependent plugin directory
manifest / events / et-rsvp-separate-name-fields

ET RSVP Separate Name Fields

ET RSVP Separate Name Fields

by The Events Calendar · github.com/the-events-calendar/et-rsvp-separate-name-fields · website

0stars
0forks

Install

No release zip yet. The repository archive installs, but the folder name will carry the branch suffix and updates will not flow:

wp plugin install https://github.com/the-events-calendar/et-rsvp-separate-name-fields/archive/refs/heads/main.zip

Readme

RSVP Separate Name Fields for Event Tickets

A WordPress plugin that adds separate first name and last name fields to Event Tickets RSVP forms, providing better data organization and display in the admin dashboard.

🎥 Demo

Watch the plugin in action: RSVP Separate Name Fields Demo

✨ Features

  • Separate Name Fields: Adds a dedicated "Last Name" field to RSVP forms
  • Smart Data Storage: Saves first and last names separately in the database
  • Full Name Display: Shows complete names in the admin dashboard
  • Modal Integration: Preserves clickable attendee details with full names
  • Form Validation: Ensures both first and last names are required
  • User-Friendly: Pre-fills last name for logged-in users
  • Responsive Design: Works seamlessly with Event Tickets styling

🚀 Installation

Method 1: Direct Upload

  1. Download the plugin files
  2. Upload the et-rsvp-separate-name-fields folder to /wp-content/plugins/
  3. Activate the plugin through the WordPress admin panel

Method 2: Manual Installation

  1. Create a folder named et-rsvp-separate-name-fields in /wp-content/plugins/
  2. Copy the plugin files into this folder
  3. Activate the plugin in WordPress admin

📋 Requirements

  • WordPress 5.0 or higher
  • Event Tickets 5.0 or higher
  • PHP 7.4 or higher

🎯 How It Works

Frontend Experience

  • RSVP Forms: Users see both "Name" (first name) and "Last Name" fields
  • Auto-fill: Logged-in users have their last name pre-filled
  • Validation: Both fields are required before form submission
  • Responsive: Fields adapt to Event Tickets styling

Backend Management

  • Separate Storage: First and last names stored as individual meta fields
  • Admin Display: "Attendee Information" column shows full names
  • Modal Details: Clickable attendee buttons display complete names
  • Data Integrity: Maintains backward compatibility with existing data

🔧 Technical Details

Database Structure

The plugin creates the following meta fields for each attendee:

  • _tribe_rsvp_first_name: Stores the first name
  • _tribe_rsvp_last_name: Stores the last name
  • _tribe_rsvp_full_name: Stores the combined full name (for compatibility)

Hook Integration

  • Template Hooks: Uses Event Tickets template system
  • JavaScript Injection: Dynamically adds fields to RSVP forms
  • Data Processing: Captures form data during RSVP submission
  • Admin Filters: Modifies admin display for better UX

🎨 Customization

Styling

The plugin uses Event Tickets CSS classes for consistent styling:

.tribe-tickets__rsvp-form-field-last-name {
    margin-top: 10px;
}

Field Labels

You can customize field labels by filtering the text domain:

add_filter('gettext', function($translation, $text, $domain) {
    if ($domain === 'event-tickets' && $text === 'Last Name') {
        return 'Surname'; // Custom label
    }
    return $translation;
}, 10, 3);

🔍 Troubleshooting

Common Issues

Q: The Last Name field doesn't appear A: Ensure Event Tickets is active and you're viewing an event with RSVP enabled.

Q: Names aren't saving properly A: Check that the form is submitting correctly and both fields are filled.

Q: Admin display shows only first names A: Clear any caching plugins and refresh the admin page.

Debug Mode

Enable WordPress debug mode to see plugin activity:

// In wp-config.php
define('WP_DEBUG', true);
define('WP_DEBUG_LOG', true);

📊 Data Migration

Existing Attendees

The plugin automatically handles existing attendees:

  • Uses existing name data as first name
  • Last name field will be empty for existing records
  • Admin display gracefully handles missing last names

Export/Import

When exporting attendee data:

  • First and last names are available as separate columns
  • Full name is also included for compatibility
  • Import functionality preserves separate fields

🤝 Support

Getting Help

  • Check the demo video for visual guidance
  • Review the troubleshooting section above
  • Ensure all requirements are met

Compatibility

  • Event Tickets: 5.0+
  • The Events Calendar: 6.0+
  • WordPress: 5.0+
  • PHP: 7.4+

📝 Changelog

Version 1.0.0

  • Initial release
  • Separate first and last name fields
  • Admin dashboard integration
  • Form validation
  • JavaScript field injection
  • Modal display enhancement

🔒 Security

  • All user input is sanitized
  • Uses WordPress nonces for form security
  • Follows WordPress coding standards
  • No external API calls or data collection

📄 License

This plugin is released under the GPL v2 or later license.

🙏 Credits

  • Built for Event Tickets by The Events Calendar
  • Uses Event Tickets template system
  • Compatible with The Events Calendar ecosystem

Made with ❤️ for the Event Tickets community

For questions or support, please refer to the demo video and troubleshooting guide above.

Read the full README on GitHub →