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 characters
<?php | |
/** | |
* Get video information and convert to array | |
* @param string $url, the url of the video | |
* @uses wp_remote_get() | |
* @return array $video, information about the video | |
*/ | |
function get_video( $url ) { | |
$keyd = "AIzaSyBKpv0AKIID3m60mPSOb_SCW-dvOPWbqpY"; | |
$video = array(); |