Created
November 28, 2012 03:01
-
-
Save caratage/4158766 to your computer and use it in GitHub Desktop.
YouTube HTML5 oembed for WordPress
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
wp_oembed_add_provider( '#http://(www\.)?youtube.com/watch.*#i', 'http://www.youtube.com/oembed?iframe=1', true ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment