Video_Post::get_video_data()

Get the video data stored on post.


Return

(mixed|void)


Source

File: includes/libs/video-post.class.php

	public function get_video_data(){
		if( !$this->get_post() ){
			return [];
		}

		$meta = $this->get_meta(
			$this->cpt()->get_post_settings()->get_meta_video_data()
		);

		if( isset( $meta['video_id'] ) && stristr( $meta['video_id'] , ':' ) ){
			$parts = explode( ':', $meta['video_id'] );
			$meta['video_id'] = $parts[0];
		}

		return $meta;
	}

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!