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