⚠️ Known Issue with Events Calendar Pro 4.2.1 and oEmbeds

Home Forums Calendar Products Events Calendar PRO ⚠️ Known Issue with Events Calendar Pro 4.2.1 and oEmbeds

Viewing 1 post (of 1 total)
  • Author
    Posts
  • #1131626
    George
    Participant

    We have heard from a few folks about a bug with our recent 4.2.1 update of Events Calendar Pro.

    Essentially, what happens is that if you try pasting a YouTube, Vimeo, or other common oEmbed , what gets generated is not the video or GitHub Gist that you expect—instead, an event embed gets posted.

    We are working on a proper fix for this and will publish it as soon as possible. In the meantime, we have a temporary code snippet that should help. Try pasting this snippet into your theme’s 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’ );

    We’re sorry for the trouble! Hopefully this snippet helps for now; stay tuned for the proper fix.

Viewing 1 post (of 1 total)
  • The topic ‘⚠️ Known Issue with Events Calendar Pro 4.2.1 and oEmbeds’ is closed to new replies.