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 );
}
Welcome to the Advanced Custom Fields community forum.
Browse through ideas, snippets of code, questions and answers between fellow ACF users
Helping others is a great way to earn karma, gain badges and help ACF development!
We use cookies to offer you a better browsing experience, analyze site traffic and personalize content. Read about how we use cookies and how you can control them in our Privacy Policy. If you continue to use this site, you consent to our use of cookies.