Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
add wrap to embeds
if ( ! function_exists( 'wpex_embed_oembed_html' ) ) {
function wpex_embed_oembed_html($html, $url, $attr, $post_id) {
return '<div class="responsive-video-wrap entry-video">' . $html . '</div>';
}
}
add_filter('embed_oembed_html', 'wpex_embed_oembed_html', 99, 4);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.