Skip to content

Instantly share code, notes, and snippets.

@bryceadams
Created November 23, 2014 02:27
Show Gist options
  • Save bryceadams/d8ef5d66e53f93209ddf to your computer and use it in GitHub Desktop.
Save bryceadams/d8ef5d66e53f93209ddf to your computer and use it in GitHub Desktop.
<?php
global $wp_embed;
$video_url = 'https://www.youtube.com/watch?v=b7mixrO2lzA';
echo $wp_embed->run_shortcode( '[embed]' . $video_url . '[/embed]' );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment