Created
December 16, 2014 12:11
-
-
Save tjhole/0e8fbded898c334118b5 to your computer and use it in GitHub Desktop.
WORDPRESS: Function oEmbed Container
This file contains hidden or 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
add_filter( 'embed_oembed_html', 'tdd_oembed_filter', 10, 4 ) ; | |
function tdd_oembed_filter($html, $url, $attr, $post_ID) { | |
$return = '<div class="flex-video">'.$html.'</div>'; | |
return $return; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment