Video_Post::is_video()

Check if it is a video post.


Return

(bool)


Source

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

	public function is_video(){
		if( !$this->get_post() ){
			return false;
		}

		$result = $this->cpt()->get_post_type() == $this->get_post()->post_type;

		/**
		 * Filter on checkup if the post is a Vimeotheque post.
		 *
		 * @param bool $result              Is the post a Vimeotheque post (true) or is not (false).
		 * @param Video_Post $video_post    Video post \Vimeotheque\Video_Post object reference.
		 */
		return apply_filters( 'vimeotheque\video\is_video', $result, $this );
	}

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!