-
-
Save drinkmaker/9b86c8c50d9092bb2a08f8fe243d449b to your computer and use it in GitHub Desktop.
This file contains 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 characters
<?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