-
-
Save EmranAhmed/103044701d49dbb07c629dd1fa381d30 to your computer and use it in GitHub Desktop.
Revisions
-
manchumahara renamed this gist
Oct 21, 2018 . 1 changed file with 0 additions and 0 deletions.There are no files selected for viewing
File renamed without changes. -
manchumahara created this gist
Oct 21, 2018 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,4 @@ $url = 'https://www.youtube.com/watch?v=08f0tiLdk7w'; //a youtube video url $autoembed = new WP_Embed(); //initialize the wordpress oEmbed helper class $content = $autoembed->autoembed($url); //let's parse the url and get the embeded content