[wp-trac] [WordPress Trac] #20851: Expand the capabilities of oembed

WordPress Trac wp-trac at lists.automattic.com
Wed Jun 6 15:02:59 UTC 2012


#20851: Expand the capabilities of oembed
-----------------------------+------------------------
 Reporter:  Otto42           |       Owner:
     Type:  feature request  |      Status:  closed
 Priority:  normal           |   Milestone:
Component:  Embeds           |     Version:  3.3.2
 Severity:  normal           |  Resolution:  duplicate
 Keywords:                   |
-----------------------------+------------------------

Comment (by nacin):

 > As it stands now, I have to hack core to do this. Not fun to keep having
 to maintain that.

 Not true — while it is non-obvious, you can hook into pre_http_request,
 when an HTTP request is triggered by `WP_oEmbed->_fetch_with_format()`.
 You can also filter it using the oembed_result filter and re-issue a
 fetch() with your own URL. Or you can do a global filter for
 wp_embed_defaults().

 I proposed the possibility of more obvious/discrete filters in #16996.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/20851#comment:5>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list