Open RavanH opened 9 years ago
I take it from this being on the Not Currently Planned milestone that a fix isn't in the works. Does anyone know a workaround?
@ryanburnette A work-around would be to programatically disable Jetpack's YouTube handler if you plan on relying on core's implementation only. Here is a little tutorial to walk you through this: https://jetpack.com/2016/05/13/hook-month-customize-modules-shortcodes-widgets/
@ryanburnette I found that simply disabling this module is currently the best way to allow oEmbed filter to be used by themes/plugins without issue (ex. https://wordpress.org/plugins/fluid-video-embeds/ & other plugins.)
Goto /wp-admin/admin.php?page=jetpack_modules and disable shortcodes module
Goto /wp-admin/admin.php?page=jetpack_modules and disable shortcodes module
Does not work anymore with Jetpack 9.0.x.
I found an alternative solution: https://developer.wordpress.org/reference/hooks/embed_handler_html/
Took a long time trying to debug oembed issue with native WP filters and actions, but none of them seems working when Jetpack enabled.
(and I'm happy I know site uses Jetpack and tried to turn it off, otherwise it could took way too longer to successfully debug WP hooks)
Hi,
I've noticed that the filter embed_oembed_html can not be counted on because as soon as Jetpack's Shortcode Embeds is activated, this filter is no longer there even if the new shortcode [youtube](or similar) is not used.
Please either add this filter like it was originally implemented in WP core -OR- please do not override the oembed that occurs when simply pasting a Youtube or other media host URL and limit yourself to the [youtube] and similar added shortcodes.
Hope that explanation was not too confusing ;)
Thanks!