One of my favorite functions of the WordPress editor is now the automatic embedding of video and other rich media by simply putting the URL on it’s own line. Really, it’s amazing!
Here is my rip of the WordPress code (found in the
WP_oEmbed classes) and assembled into a class named
It supports the following services (according to the WordPress Codex):
- Flickr (both videos and images)
- YouTube (only public and “unlisted” videos and playlists – “private” videos will not embed)
- WordPress.tv (only VideoPress-type videos for the time being)
You can get the “gist” of it by looking below; the example is followed by the class definition.