vimeotheque_the_video_views( string $before = '<span class="video-views">', string $after = '</span>' )

Display the number of video views.


Description

Templating function that will display the total views for the current video in the loop.


Parameters

$before

(Optional) Text to display before the views number.

Default value: '<span class="video-views">'

$after

(Optional) Text to display after the views number.

Default value: '</span>'


Return

(string)


Source

File: includes/libs/templates/post-template.php

function vimeotheque_the_video_views( $before = '<span class="video-views">', $after = '</span>' ){
	$post = \Vimeotheque\Helper::get_video_post();

	$output = $before . number_format_i18n( $post->stats['views'] ) . $after;

	echo $output;

	return $output;
}

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!