Support

Home Forums Event Espresso Premium How to hide the Register Now button for those already registered Reply To: How to hide the Register Now button for those already registered

Reply To: How to hide the Register Now button for those already registered

Author Replies
mdeyerinkc # Posted on May 14, 2018 at 4:19 pm

…I think I figured it out. Had an extra-set brackets I didn’t need. so the last part should look like…

if( in_array( $this_event_id, $user_event_ids ) ) {
      echo '<span style="color:red"><h3>You are registered for this event!</h3><p>If you need to cancel or make any changes to your registration, please contact the course administrator.</p></span>';
    echo '<style>div.event-tickets{ display: none; }</style>';
}
}
}
Do NOT follow this link or you will be banned from the site!