Remove "Don’t list me on the public attendee list"

Home Forums Ticket Products Event Tickets Plus Remove "Don’t list me on the public attendee list"

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #1118284
    bluespark
    Participant

    As requested by Cliff I am posting this again

    I have upgraded to the latest Events Tickets and Event tickets plus
    In some threads you say that latest version contains a fix for this but it is not clear what that means –
    I am still seeing
    ‘Don’t list me on the public attendee list’
    in the tickets section, even though the events has
    ‘Hide attendees list on event page ticked’

    So, do you have to hack the css the hide the
    ‘Don’t list me on the public attendee list’?

    #1118374
    Hunter
    Moderator

    Hello and thanks for the post 🙂

    Add the following snippet to your theme’s functions.php file and let me know if it works out for you. Have a good Tuesday and thanks for choosing PRO!

    /**
    * 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' );

    #1119150
    bluespark
    Participant

    After adding that to the functions.php file
    ‘Don’t list me on the public attendee list’
    still appears below each ticket type

    #1119227
    Hunter
    Moderator

    Welcome back,

    My apologies for misunderstanding the question!

    For the time being, you can do a template override as explained in our Themer’s Guide. The file you’ll need to overwrite is /event-tickets-plus/src/views/wootickets/tickets.php. You’ll need to make changes starting around line 104 and save it as /your-theme/tribe-events/wootickets/tickets.php.

    Thanks for the patience while we worked it out and keep me updated with your progress.

    #1119237
    bluespark
    Participant

    Thanks that works!

    Can’t help feeling that it should not need that level of hacking to manage that, but at least it works now.

    Presumably that is upgrade safe, unless you change tickets.php itself in which case I might have a problem.

    #1120002
    Hunter
    Moderator

    Welcome back,

    As long as you have your changes saved as custom templates inside your theme folder, you should be good. Just be sure to check the changelogs to see if the templates you’ve overwritten have potentially changed.

    Glad to hear the issue is resolved. I’ll close this thread out but feel free to open a new one if anything else comes up 🙂

Viewing 6 posts - 1 through 6 (of 6 total)
  • The topic ‘Remove "Don’t list me on the public attendee list"’ is closed to new replies.