Steve Taylor photo

Function to directly use oEmbed in WordPress

Do you want to make use of WordPress’ brilliant embedding functionality in your template or plugin code?

I’ve done it in the past in different ways, but I just found probably the best way: the wp_oembed_get function!

D’uh.