Created
September 20, 2018 10:27
-
-
Save craigiswayne/ee98a4a2a5c8a24a1c67f06ec922c90d to your computer and use it in GitHub Desktop.
How to Render YouTube Video in WordPress (given the URL)
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 | |
$ytURL = https://www.youtube.com/watch?v=dQw4w9WgXcQ; | |
echo wp_oembed_get( $ytURL ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment