Support

Home Forums Event Espresso Premium Hiding Expired Events on User Profile Page Reply To: Hiding Expired Events on User Profile Page

Reply To: Hiding Expired Events on User Profile Page

Author Replies
mdeyerinkc # Posted on April 30, 2018 at 3:37 pm

Nope – the event was not sold out. It was a one-day training with four seats “unsold” [we don’t actually sell seats – but attendance is restricted to our organization.]

Following your guidance from the post in 2016 I referenced, I created a child template file for content-espresso_my_events-event_section.template.php, and added the line you offered. So it currently looks like…

<?php
if ( $event->get_active_status() == 'DTE' ) { return; }

/**
 * Template for the "event_section" content template for the [ESPRESSO_MY_EVENTS] shortcode
 * Available template args:
 *
 * @type    EE_Event $event              event object
 * @type    string   $your_tickets_title title for the ticket.
 * @type    int      $att_id             The id of the EE_Attendee related to the displayed data.
 */
$registrations = $event->get_many_related('Registration', array(array('ATT_ID' => $att_id)));
?>
<tr class="ee-my-events-event-section-summary-row">

I omitted the rest of the code for brevity.

Do NOT follow this link or you will be banned from the site!