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