WP YouTube Counters

Adds shortcodes to show YouTube channel's subscribers and video views count.

Author:Mateusz Adamus (profile at wordpress.org)
WordPress version required:4.3
WordPress version tested:4.6.21
Plugin version:0.2
Added to WordPress repository:08-10-2016
Last updated:10-10-2016
Warning! This plugin has not been updated in over 2 years. It may no longer be maintained or supported and may have compatibility issues when used with more recent versions of WordPress.
Rating, %:0
Rated by:0
Plugin URI:
Total downloads:849
Active installs:10+
plugin download
Click to start download

Adds shortcodes to show YouTube channel’s subscribers and video views count. For both shortcodes YouTube Channel ID and YouTube API Key is needed.

For performance reasons the data is refreshed once every 12 hours. This can be modified with “timeout” parameter (value in hours).

Shortcodes are as follows:

  • youtube_views_count – for channel video views count
  • youtube_subscribers_count – for channel subscribers count

Parameters are as follows:

  • id – YouTube channel ID (How to get YouTube channel ID? https://support.google.com/youtube/answer/3250431?hl=en)
  • key – YouTube API key for browser (How to get YouTube API key? https://developers.google.com/youtube/registering_an_application#Create_API_Keys)
  • timeout – cache timeout (value in hours) /default is 12 hours/

For example:

  • [youtube_views_count id=’YOUR_CHANNEL_ID’ key=’YOUR_API_KEY’]
  • [youtube_views_count id=’YOUR_CHANNEL_ID’ key=’YOUR_API_KEY’ timeout=’1′]

ChangeLog