Missing argument 2 for Tribe__Tickets_Plus__Commerce__WooCommerce__Main

Home Forums Ticket Products Event Tickets Plus Missing argument 2 for Tribe__Tickets_Plus__Commerce__WooCommerce__Main

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #1346498
    Dan Feeley
    Participant

    We have been using the following code to display a front-end attendee list.

    We recently updated our plugins to the latest and in doing so we are getting the following error:
    Missing argument 2 for Tribe__Tickets_Plus__Commerce__WooCommerce__Main::get_attendees()

    I poked around the code and saw this:
    @since 4.5 Introduced $post_id and changed first param to a WP_Query instead of Integer but I am not sure how to work around this. Any help would be greatly appreciated.

    Thank you

    #1347680
    Cliff
    Member

    Hi, Dan.

    Switching from $attendees = $this->get_attendees( get_the_ID() ); to $attendees = $this->get_attendees_by_post_id( get_the_ID() ); might work, but please note that even when we provide snippets, it is in the hope that it will be useful but also without any commitment to onward support.

    #1358399
    Support Droid
    Keymaster

    Hey there! This thread has been pretty quiet for the last three weeks, so we’re going to go ahead and close it to avoid confusion with other topics. If you’re still looking for help with this, please do open a new thread, reference this one and we’d be more than happy to continue the conversation over there.

    Thanks so much!
    The Events Calendar Support Team

Viewing 3 posts - 1 through 3 (of 3 total)
  • The topic ‘Missing argument 2 for Tribe__Tickets_Plus__Commerce__WooCommerce__Main’ is closed to new replies.