WordPress plugin intelligence profile

WP Theater

Shortcodes for YouTube and Vimeo. Includes embeds, "Theater" embed, thumbed previews, playlist, channel, user uploads and groups.

WP PlugIndex snapshot

Current directory snapshot

Tested up to WordPress 4.2
Current version1.2.3
WordPress coverageTested up to WordPress 4.2
Minimum stackWP 3.6 · PHP —
Directory statusactive
Last directory update26 Apr 201511y ago
Active installations100Adoption metric — not a quality score
WordPress.org rating4.6 / 5 from 5 ratings
Official packageDirect from WordPress.org

Repository metrics are context, not quality scores. Active installations measure adoption and can strongly reflect a plugin’s age and historical popularity. Ratings, recent updates and “Tested up to” metadata also do not guarantee modern code, error-free operation, security, feature completeness or suitability for a particular site. Why active installs don’t tell the whole story →

WP PlugIndex currently records WP Theater version 1.2.3 as active, updated 11y ago and tested up to WordPress 4.2.

Overview

About this plugin

WP Theater provides shortcodes for integrating YouTube and Vimeo video embeds and feeds into your posts or widgets. Some options include traditional embedding, single video previews, a wrapped “Theater” embed, and video listings from playlists, channels, albums and groups. WP Theater was built with developers in mind, those who need flexibility.

With that said, great effort was put into making sure this plugin stayed simple.

Requirements

  • Current version tested on WordPress version 3.9 and later.
  • PHP 5.3 or later with cURL

Usage

For parameters and their usage please visit:

com/wp-theater/

Boring Embed – The classic

Preview – Thumbnail and title of a single video

Theater – Traditional embed that’s wrapped for styling, has optional Lower Lights and Full Window buttons, and is responsive.

The following contain a “theater” by default

User – Listing of a user’s videos

// for YouTube's v3 API see FAQ about user uploads vs playlists.

Channel – Listing of videos from a specific channel

Playlist – Listing of videos from a user’s playlist

Album – Listing of videos from a specific album

Group – Listing of videos from a specific group

Developer FAQ

How can I customize the output

Filters exist that can handle complete customization of the output. Written as “Filter_Hook” ($callback_params … )

Display — Override built in output

  • “wp_theater-pre_video_shortcode” ( FALSE, $feed, $atts )
  • “wp_theater-pre_theater” ( FALSE, $atts, $content, $tag )
  • “wp_theater-pre_video_preview” ( FALSE, $video, $atts, $selected )

Attributes

  • “wp_theater-format_params” ( $atts, $content, $tag )

API Feeds — Override built in api request and parsing. NOTE: Keep in mind that these filters will only be called when the transient cache is updated.

  • “wp_theater-pre_get_request_url” ( FALSE, $atts, $request, $output )
  • “wp_theater-parse_{$service}_response” ( $out, $response, $atts) // v1.1.3

Content

  • “wp_theater-section_title” ( $title )
  • “wp_theater-video_title” ( $title )
  • “wp_theater-{$service}_more_url” ( FALSE, $atts, $data ) // v1.1.4

Presets

  • “wp_theater-get_preset” ( $name )
  • “wp_theater-set_preset” ( $arr, $name )

How do I add my own preset?

The following code will create a preset named “my_preset”. We do not currently, but are planning to, offer a method of saving presets to the database so that they stick around between theme’s.

function my_preset_init ($presets) { $presets->set_preset( 'my_preset', shortcode_atts( $presets->get_preset( 'youtube' ), array( 'embed_width' => 342, 'embed_height' => 192, 'max' => 9, ) ) ); add_shortcode( 'my_preset', array( WP_Theater::$shortcodes, 'video_shortcode' ) ); } add_action('wp_theater-shortcodes_init', 'my_preset_init');

What values can I define in presets

Listed below are all of the possible settings you can define in a preset with their base values

array( // general options 'preset' => '', 'service' => '', 'mode' => 'embed', 'id' => '', 'embed_width' => FALSE, 'embed_height' => FALSE, 'class' => '', 'cache' => FALSE,

// preview & listing options 'img_size' => 'medium', 'columns' => 3, 'max' => 12, 'autoplay_onclick' => TRUE,

// Title options 'show_title' => TRUE, 'show_video_title' => TRUE, 'title' => '',

// More link options 'show_more_link' => TRUE, 'more_url' => FALSE, 'more_text' => FALSE,

0

// can only be defined in presets 'modes' => array(), // the modes array with matching link formats 'classes' => array( // the classes to apply to their respective elements 'section' => 'entry-section wp-theater-section %service%', 'theater' => 'wp-theater-bigscreen', 'embed' => 'wp-theater-iframe', 'list' => 'wp-theater-listing', 'preview' => 'video-preview' ) );

How can I modify the embed url?

Each preset requires a modes array to store the different link formats used. php.

g.

wmode=transparent&autohide=1'; $presets->set_preset( 'youtube', $youtube_preset ); } add_action('wp_theater-shortcodes_init', 'my_preset_init');

NOTE: Each mode URL must have %id% in the place of the id. And, it’s a bit dumb but, for now you must include at least one query parameter in an embed’s url.

What do the formatted feeds look like?

Vimeo’s feed will return exactly what their API states except we merge their info and video requests into one and clone values to help normalize the feeds. Youtube on the other hand is almost completely reformatted into a format based on Vimeo’s

You can count on the full feeds returning the following content with an exception being that single preview feeds do not have the feed title or url.

Also, with YouTube’s v3 API enabled, rating, likeCount and viewCount will always be empty strings since you must use OAuth2 and be a verified content owner:

0 -- set to the largest available image.

WordPress.org metadata

Plugin tags

Topics listed for this plugin in the WordPress.org directory.

  • vimeo shortcode
  • youtube shortcode
  • embed
  • video
Compatibility & maintenance

Compatibility & maintenance

Tested up to WordPress 4.2

Not yet marked as tested with WordPress 7.1. WordPress.org currently lists Tested up to 4.2.

Current WordPress releaseWordPress 7.1
WordPress.org Tested up to4.2
Minimum requirementsWordPress 3.6 · PHP not listed
Update activity26 Apr 201511y ago

“Tested up to” is directory metadata supplied by the plugin author. WP PlugIndex does not turn an older declaration into a claim that the plugin is incompatible.

Changes recorded by WP PlugIndex

Recent tracked changes

No tracked version or compatibility changes have been recorded by WP PlugIndex yet.

Tracking & source

WP PlugIndex tracks public WordPress.org directory metadata and records selected version, compatibility and availability changes as they are detected.

Plugin watchlist

Watch this plugin

Sign in to your WP PlugIndex account or create a free account. Free accounts can watch up to 5 plugins and see what changed.

Watch limit

Watchlist limit reached

You have reached your current active watch limit.