lib/Post.php
public function video() {
		if ( isset($this->custom['video']) ) {
			return $this->custom['video'];
		}
		$video = false;

		// Only get video from the content if a playlist isn't present.
		if ( false === strpos($this->get_content(), 'wp-playlist-script') ) {
			$video = get_media_embedded_in_content($this->get_content(), array('video', 'object', 'embed', 'iframe'));
		}

		return $video;
	}
public function video() {
		if ( isset($this->custom['video']) ) {
			return $this->custom['video'];
		}
		$video = false;

		// Only get video from the content if a playlist isn't present.
		if ( false === strpos($this->get_content(), 'wp-playlist-script') ) {
			$video = get_media_embedded_in_content($this->get_content(), array('video', 'object', 'embed', 'iframe'));
		}

		return $video;
	}
public function video ( ) { if ( isset ( $ this -> custom [ 'video' ] ) ) { return $ this -> custom [ 'video' ] ; } $ video = false ; // Only get video from the content if a playlist isn't present. if ( false === strpos ( $ this -> get_content ( ) , 'wp-playlist-script' ) ) { $ video = get_media_embedded_in_content ( $ this -> get_content ( ) , array ( 'video' , 'object' , 'embed' , 'iframe' ) ) ; } return $ video ; }
Returns the video
@api
@example
```twig
{{ post.video }}
```
@return html
Returns the video