Home › Forums › Calendar Products › Events Calendar PRO › Event is embedded instead of YouTube video
- This topic has 5 replies, 5 voices, and was last updated 9 years, 9 months ago by
Geoff.
-
AuthorPosts
-
June 22, 2016 at 7:49 am #1130344
jaapstronks
ParticipantPlease 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.
June 22, 2016 at 7:58 am #1130348jaapstronks
ParticipantThis reply is private.
June 22, 2016 at 3:15 pm #1130654Nico
MemberHi 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,
NicoJuly 7, 2016 at 9:35 am #1136629Support Droid
KeymasterThis 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.July 7, 2016 at 2:29 pm #1136946Geoff
MemberHey 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 -
AuthorPosts
- The topic ‘Event is embedded instead of YouTube video’ is closed to new replies.
