how to use wp_embed_register_handler
-
My apologies–I’m a bit baffled here. I’d like to embed a video from the Star Wars: The Old Republic website on my WordPress blog. Here’s the embed code they provide.
<object width=”580″ height=”330″><param name=”movie” value=”http://cdn-www.swtor.com/sites/all/themes/swtor/en/assets/mediaPlayerInterior.swf” /><param name=”allowFullScreen” value=”true” /><param name=”flashvars” value=”title=undefined&description=undefined&source=http://cdn-www.swtor.com//sites/all/files/en/vc/VD_20100423_VidDoc4_580x326.flv&fullscreen_source=/&comment_url=/media/trailers/video-documentary-4#comments&lang=EN&age_gate=0″ /><embed src=”http://cdn-www.swtor.com/sites/all/themes/swtor/en/assets/mediaPlayerInterior.swf” type=”application/x-shockwave-flash” allowfullscreen=”true” width=”580″ height=”330″flashvars=”title=undefined&description=undefined&source=http://cdn-www.swtor.com//sites/all/files/en/vc/VD_20100423_VidDoc4_580x326.flv&fullscreen_source=/&comment_url=/media/trailers/video-documentary-4#comments&lang=EN&age_gate=0″ /></object>
Now obviously, when I put that in my post using the HTML editor, WordPress just removes it entirely. So I thought I could use wp_embed_register_handler in my theme’s functions.php in order to register videos from the site. In this case, it would be http://cdn-www.swtor.com//sites/all/files/en/vc/VD_20100423_VidDoc4_580x326.flv I guess.
For the life of me, though, I can’t figure out what they’re talking about on this page. http://codex.wordpress.org/Function_Reference/wp_embed_register_handler
Mostly, I guess I can’t figure out how that Callback function works. Can anybody lend a hand here?
The topic ‘how to use wp_embed_register_handler’ is closed to new replies.