Support

Account

Home Forums ACF PRO oEmbed, pull video title and description from Vimeo

Helping

oEmbed, pull video title and description from Vimeo

  • Hi, I’m already pulling the vimeo thumbnail using a method I found on the forum, but was wondering if there was a way to pull not only the video thumbnail, but the video title and description from Vimeo as well? Thanks!

  • You could use the following function to fetch all the details of the oEmbed and then use the title and description property.

    function tf_get_oembed_details( $url ) {
    	require_once( ABSPATH . WPINC . '/class-oembed.php' );
    	$oembed = _wp_oembed_get_object();
    	
    	$provider = $oembed->get_provider( $url );
    	
    	if ( ! $provider ) {
    		return false;
    	}
    	
    	return $oembed->fetch( $provider, $url );
    }
Viewing 2 posts - 1 through 2 (of 2 total)

The topic ‘oEmbed, pull video title and description from Vimeo’ is closed to new replies.