Sort Attendees

Home Forums Ticket Products Event Tickets Plus Sort Attendees

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #1000101
    John Osmond
    Participant

    I’ve been looking for information about sorting the attendees page by purchaser name. It becomes pretty important when the list is long.

    I found a way to accomplish, but had to hack a core file. I’m looking for a way to do it with a filter or action hook.

    In plugins/wootickets/src/Tribe/Main.php
    * I added some code near line 821.
    Under: $attendees = array();
    I added: $names = array();

    * Also added near line 875
    Under the $attendeess[] array closing );
    I added: $names[] = $name;

    * Then just before the function return I added:
    array_multisort($names, $attendees);

    That sorts the attendees array by the values in the names array.

    Anyway, if there is a non-core file way to do this I would like to work on it with you all.

    #1000460
    Brian
    Keymaster

    Hi,

    Thanks for using our plugins.

    I do not believe we have a hook or filter to reorder right now and the only way would be to do as you have done.

    However, we have started a major overhaul of the ticketing system and this is something I think we can include.

    I have made a note to check on this and see about getting it included.

    It will not be in the next release, which is 3.12 as that is in final testing, but we have it scheduled for the release after that.

    Let me know if you have any follow up questions.

    Thanks

    #1005238
    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 ‘Sort Attendees’ is closed to new replies.