Author: Ryan R. Bayne

Embed Everything Short-code Examples

Embed Everything Short-code Examples

Possibly the main short-code for Twitch.tv and WordPress to work together. It’s an easy one to use and it outputs live streams with interactive chat. There are also some hidden options and it’s easy to add more if you want to perfect your visitors experience.

Basic Use

Paste this example into any post, page or sidebar to display the giving channel.

[twitchpress_embed_everything channel="LOLinDark1"]

Default Content: Videos

If you want to display some default content when your stream is offline then use this.

[twitchpress_embed_everything channel="LOLinDark1" defaultcontent="videos"]

Default Content: Single Video

Display a default video when your stream is offline.

[twitchpress_embed_everything channel="LOLinDark1" defaultcontent="video"]

Does the plugin embed Twitch.tv video and let me make a wall of streams?

Does the plugin embed Twitch.tv video and let me make a wall of streams?

In short, yes the TwitchPress plugin has shortcodes and a theme template for this purpose but it requires some configuration and design. A shortcode is planned for outputting many streams on one page though, it won’t take long and all of these existing features can be developed further for specific needs. Try the plugin today and see how it easy it is to display live broadcasts and chat from the Twitch.tv website.

Sync Trigger: Visitor opening WP profile view

When a visitor goes to the WP core profile view, synchronizing will be triggered. Subscription syncing is likely to always be an active part of the process due to how important it is.

Uses

TwitchPress_Systematic_Syncing->sync_user()

File

twitchpress/includes/classes/class.twitchpress-sync.php 

PHP Line

add_action( 'profile_personal_options', array( $this, 'sync_user_on_viewing_profile' ) );  

Data Synced

  • Twitch subscription plan for the current user or requested user when an administrator is viewing a visitors profile.