WordPress YouTube oEmbed Filters

Get ride of over branding and the related videos at the end of the video for wordpress oEmbed videos.


add_filter( 'embed_oembed_html', 'iweb_modest_youtube_player', 10, 3 );
function iweb_modest_youtube_player( $html, $url, $args ) {
return str_replace( '?feature=oembed', '?feature=oembed&modestbranding=1&showinfo=0&rel=0', $html );
}

Close Menu