Helper::query_video( string $video_id )

Query Vimeo for a single video.


Description

Given a video ID from Vimeo, will return the video details from the Vimeo API.


Parameters

$video_id

(string) (Required) The Vimeo video ID.


Return

(array|\WP_Error) The video details.


Source

File: includes/libs/helper.class.php

	public static function query_video( $video_id ){
		$vimeo = new Video_Import( 'video', $video_id );
		$result = $vimeo->get_feed();
		if( !$result ){
			$error = $vimeo->get_errors();
			if( is_wp_error( $error ) ){
				return $error;
			}
		}
		return $result;
	}

Start your video site now!

Manage and coordinate your Vimeo channels, albums or videos with your WordPress website. Perfect fit for membership, portfolio, online courses or any type of video collection.

Get Vimeotheque PRO!