-
-
Save jimboobrien/a360c4cf997f0cdaf56a5db794465b35 to your computer and use it in GitHub Desktop.
Return Vimeo Video Embedded
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 | |
// http://vimeo.com/75577633 could replace $xml->video[$post_content]->url | |
public function skbp_vimeo_player( $post_content = 0 ) { | |
$xml = simplexml_load_string( self::skbp_vimeo_support_url() ); | |
// echo '<pre>'; print_r($xml->video[0]->url); echo '</pre>'; | |
$post_content = 0; | |
$output = ''; | |
$output .= '<h3>' . __( 'Recent Video', 'skbp' ) . '</h3>'; | |
$output .= '<br />'; | |
$output .= '[embed]' . $xml->video[$post_content]->url . '[/embed]'; | |
$output .= '<br />'; | |
return do_shortcode($output); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment