Skip to:
Content
Pages
Categories
Search
Top
Bottom

Re: oEmbed for BuddyPress plugin – out now!


r-a-y
Keymaster

@r-a-y

@bpyogi

You’ll have to register uStream and TED Video as handlers like @levin did

If you know a little code, you can make them both as embed handlers.

Here’s the code WP uses for PollDaddy as a guide:

function wp_embed_handler_polldaddy( $matches, $attr, $url, $rawattr ) {
return apply_filters( 'embed_polldaddy', '<script type="text/javascript" charset="utf8" src="http://s3.polldaddy.com/p/' . esc_attr($matches[1]) . '"></script>', $matches, $attr, $url, $rawattr );
}
wp_embed_register_handler( 'polldaddy', '#http://answers.polldaddy.com/poll/(d+)(.*?)#i', 'wp_embed_handler_polldaddy' );

I still have to add WP_Embed support though, which I forgot to do!

@levin

I forgot to check for WP_Embed handlers that aren’t part of the default oEmbed class.

I’ve just got this working on my sandbox. This will work its way into the new version.

@xberserker

Looking at releasing v0.6 sometime next week. Sorry about the delay.

Skip to toolbar