Event is embedded instead of YouTube video

Home Forums Calendar Products Events Calendar PRO Event is embedded instead of YouTube video

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #1130344
    jaapstronks
    Participant

    Please fix this asap. Oembed function retrieves an event instead of a YouTube video. I’d like to disable oembed for TEC completely please.

    The specific place where the problem is occurring is on line 1778 of /events-calendar-pro/src/Tribe/Main.php

    return tribe_get_upcoming_recurring_event_id_from_url( $url );

    Removing that line allows wp_oembed_get() to work appropriately.

    #1130348
    jaapstronks
    Participant

    This reply is private.

    #1130654
    Nico
    Member

    Hi Jaap,

    Thanks so much for reporting this issue and sorry for the hassle until fixed 🙁

    This has been recently logged but unfortunately this was reported when the maintenance release 4.2.1 (coming out today) as already packed so we couldn’t rush a fix for this into it. A solution will be included in 4.2.2 coming out in two weeks time approximately.

    For now you can use this snippet in your functions.php file:


    **
    * Avoid a problem with Events Calendar PRO 4.2 which can inadvertently
    * break oembeds.
    */
    function undo_recurrence_oembed_logic() {
    if ( ! class_exists( 'Tribe__Events__Pro__Main' ) ) return;

    $pro_object = Tribe__Events__Pro__Main::instance();
    $pro_callback = array( $pro_object, 'oembed_request_post_id_for_recurring_events' );

    remove_filter( 'oembed_request_post_id', $pro_callback );
    }

    add_action( 'init', 'undo_recurrence_oembed_logic' );

    Hope that helps until fixed,
    Best,
    Nico

    #1136629
    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.

    #1136946
    Geoff
    Member

    Hey there,

    We wanted to follow-up to let you know that we were able to patch this up in The Events Calendar and Events Calendar PRO 4.2.2, which are both now available to download and install if you haven’t done so already.

    Please do be sure to check out our release notes for a full overview of what’s new in the release and feel free to let us know if you run into this or any other issues after the update.

    Thanks so much for your patience while we worked on this!

    Cheers,
    Geoff

Viewing 5 posts - 1 through 5 (of 5 total)
  • The topic ‘Event is embedded instead of YouTube video’ is closed to new replies.