Skip to content

Instantly share code, notes, and snippets.

@radist2s
Created July 10, 2015 08:17
Show Gist options
  • Save radist2s/08bc6cba7d7a06751161 to your computer and use it in GitHub Desktop.
Save radist2s/08bc6cba7d7a06751161 to your computer and use it in GitHub Desktop.
Worpress Open Embed (Video) content wrapper hook/filter
add_filter('embed_oembed_html', function ($oembed) {
return "<div class='video-wrapper'>$oembed</div>";
}, 10);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment