Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
A small example of how to hide the 'email' address field for additional registrants when using EE4. The function hides all but the first email address fields then copies any text input into the email field to all of the hidden fields, this means you can request the 'personal information' group for additional registrants but they will not need to…
<?php // Please do not include the opening PHP tag if you already have one.
// This function hides all the the Primary Registrant's email address question
// and then copies any value set in that question to the other fields.
add_action( 'wp_enqueue_scripts', 'tw_ee_hide_additional_email_questions', 11 );
function tw_ee_hide_additional_email_questions() {
"jQuery( document ).ready(function( $ ) {
$('.ee-reg-qstn-email').on('keyup change paste', function(e){
$('.spco-attendee-panel-dv:not(:first)').each( function() {
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.