[wp-hackers] embed shortcode

John Blackbourn johnbillion+wp at gmail.com
Thu Sep 16 21:31:56 UTC 2010


Note that wp_oembed_get() actually fetches the content from the source
URL (ie. youtube.com) on every call, so you should cache the result in
a transient or a post meta field.

On Thu, Sep 16, 2010 at 10:07 PM, Otto <otto at ottodestruct.com> wrote:
> My mistake, it's wp_oembed_get().
>
> The first parameter is the URL. The second is an array of arguments.
> Available arguments:
> discover => true/false - enables oembed discovery.
> width => number
> height => number - max widths and heights
>
> -Otto
> _______________________________________________
> wp-hackers mailing list
> wp-hackers at lists.automattic.com
> http://lists.automattic.com/mailman/listinfo/wp-hackers
>


More information about the wp-hackers mailing list