Remove public attendee list from event page

Home Forums Ticket Products Event Tickets Plus Remove public attendee list from event page

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #1100503
    James
    Participant

    Hi I was wondering if there is a way to remove the public attendee list from the event page?

    Running all the latest and greatest…

    #1101264
    Nico
    Member

    Hi James,

    Thanks for reaching out to us! I can help you here.

    You can configure this per event, on the edit event screen: https://cloudup.com/cZXgw1E-v7V . We have also introduced a change in how this works in maintenance release 4.1.2, per default this will be disabled.

    Other option is to add this snippet to your functions.php to disable the option for all events:


    /**
    * Disables the public attendee lists on all events
    *
    * Removes the tribe_events_single_event_after_the_meta action that injects the attendee
    * list that was introduced with the initial 4.1 release of Event Tickets Plus
    */
    function disable_attendee_list_on_post() {
    if ( ! class_exists( 'Tribe__Tickets_Plus__Attendees_List' ) ) {
    return;
    }

    remove_action('tribe_events_single_event_after_the_meta', array(Tribe__Tickets_Plus__Attendees_List::instance(),'render'), 4);
    }

    add_action( 'wp', 'disable_attendee_list_on_post' );

    Please let me know if this answers your question,
    Best,
    Nico

    #1107736
    Support Droid
    Keymaster

    This topic has not been active for quite some time and will now be closed.

    If you still need assistance please simply open a new topic (linking to this one if necessary)
    and one of the team will be only too happy to help.

Viewing 3 posts - 1 through 3 (of 3 total)
  • The topic ‘Remove public attendee list from event page’ is closed to new replies.