[wp-trac] [WordPress Trac] #16996: oEmbed: Allow custom arguments to be specified

WordPress Trac wp-trac at lists.automattic.com
Tue Mar 29 20:18:50 UTC 2011


#16996: oEmbed: Allow custom arguments to be specified
-----------------------------+-----------------------------
 Reporter:  newmediarts      |      Owner:
     Type:  feature request  |     Status:  new
 Priority:  normal           |  Milestone:  Awaiting Review
Component:  Embeds           |    Version:  3.1
 Severity:  normal           |   Keywords:
-----------------------------+-----------------------------
 Vimeo, and likely other providers as well,
 [http://vimeo.com/api/docs/oembed allow custom arguments to be passed]
 when fetching the oEmbed code to customize the returned player HTML (e.g.
 {{{color}}}, {{{autoplay}}}, etc.).

 Currently, it seems only the {{{maxheight}}} and {{{maxwidth}}} arguments
 [http://core.trac.wordpress.org/browser/branches/3.1/wp-includes/class-
 oembed.php?rev=17370#L165 are passed] when fetching the oEmbed data.


 However, I'd like to do something like this:

 {{{http://vimeo.com/12345?color=7AB800}}}

 #=>
 http://vimeo.com/api/oembed.xml?url=http%3A//vimeo.com/12345&color=7AB800

 which will let me customize the player colour.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/16996>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list