[wp-trac] [WordPress Trac] #30660: Embed handler filter callback not firing (e.g. wp_embed_handler_youtube)
WordPress Trac
noreply at wordpress.org
Wed Dec 10 16:28:39 UTC 2014
#30660: Embed handler filter callback not firing (e.g. wp_embed_handler_youtube)
-------------------------------------+---------------------------------
Reporter: eterps | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Embeds | Version: 4.0
Severity: normal | Resolution:
Keywords: reporter-feedback close | Focuses: ui, administration
-------------------------------------+---------------------------------
Changes (by johnbillion):
* keywords: => reporter-feedback close
* version: 4.0.1 => 4.0
Comment:
The description for the `wp_embed_handler_youtube` filter is misleading.
This only filters the embed code for YouTube URLs which start with
`youtube.com/embed` rather then the normal video URLs which start with
`youtube.com/watch`.
Most likely the filter you're looking for is
[https://developer.wordpress.org/reference/hooks/oembed_result/
oembed_result] which filters the markup for the embed after it's returned
from the provider.
Also note that the auto-embed functionality isn't new in WordPress, it's
been there years. The new functionality in 4.0 adds additional support for
`youtube.com/embed` URLs (#24660).
--
Ticket URL: <https://core.trac.wordpress.org/ticket/30660#comment:1>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list