Support

Account

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

  • 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 );
    }