Skip to content

Instantly share code, notes, and snippets.

@bryceadams
Created November 23, 2014 02:27
Show Gist options
  • Select an option

  • Save bryceadams/d8ef5d66e53f93209ddf to your computer and use it in GitHub Desktop.

Select an option

Save bryceadams/d8ef5d66e53f93209ddf to your computer and use it in GitHub Desktop.

Revisions

  1. bryceadams created this gist Nov 23, 2014.
    6 changes: 6 additions & 0 deletions gistfile1.php
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,6 @@
    <?php

    global $wp_embed;
    $video_url = 'https://www.youtube.com/watch?v=b7mixrO2lzA';

    echo $wp_embed->run_shortcode( '[embed]' . $video_url . '[/embed]' );