Helper::get_title( bool $include_duration = true, string $before = '', string $after = '', bool $echo = true )


Parameters

$include_duration

(Optional)

Default value: true

$before

(Optional)

Default value: ''

$after

(Optional)

Default value: ''

$echo

(Optional)

Default value: true


Return

(string|void)


Source

File: includes/libs/themes/helper.class.php

	public static function get_title( $include_duration = true,  $before = '', $after = '', $echo = true ){
		$video = self::current_video_post();
		if( !$video ){
			return;
		}

		$output = $video->get_post()->post_title;

		if( $include_duration ){
			$output .= self::get_duration( '<span class="duration">[', ']</span>', false );
		}

		if( $echo ){
			echo $before.$output.$after;
		}

		return $before.$output.$after;
	}

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!