Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <div class="videoWrapper">
- <iframe width="600" height="338" src="https://www.youtube.com/embed/f5CcOq8UzkI?feature=oembed" frameborder="0" allowfullscreen=""></iframe>
- </div>
- function Oembed_youtube_no_title($html,$url,$args){
- $url_string = parse_url($url, PHP_URL_QUERY);
- parse_str($url_string, $id);
- if (isset($id['v'])) {
- return '<div class="embed-container"><iframe width="'.$args['width'].'" height="'.$args['height'].'" src="http://www.youtube.com/embed/'.$id['v'].'?rel=0&showinfo=0" frameborder="0" allowfullscreen></iframe></div>';
- }
- return $html;
- }
- add_filter('oembed_result','Oembed_youtube_no_title',10,3);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement