Helper::get_video_post( bool|int|\WP_Post $post = false )

Get the \Vimeotheque\Video_Post object of a post.


Returns the video post object \Vimeotheque\Video_Post for the current post in the loop or the post passed to the function.



(Optional) The WordPress post that will be processed into a Video_Post object.

Default value: false




File: includes/libs/helper.class.php

	public static function get_video_post( $post = false ){
		if( $post instanceof Video_Post ){
			return $post;

		return new Video_Post( $post );

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!