cedaro / youtube-embed-parameters

A WordPress plugin to customize parameters for embedded Youtube players.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

YouTube Embed Parameters

Customize parameters for embedded Youtube players, including oEmbeds.

Contributors: Brady Vercher
Requires: 4.0
Tested up to: 4.1
License: GPL-2.0+

YouTube allows embedded players to be customized by setting parameters in the iframe URL, however, custom parameters are stripped when passed through the oEmbed endpoint, making it difficult to customize the players. YouTube Embed Parameters makes sure custom parameters can be added by filtering the oEmbed HTMl.

Usage

Default parameters can be set on the Settings → Media screen in the admin panel.

It's possible to override the defaults for individual players by adding parameters to the original URL. For example, when inserting a YouTube video URL into the editor, add &rel=0 to the end of the URL to disable related videos for that particular player.

Installation

Upload

  1. Download the latest release from GitHub.
  2. Go to the Plugins → Add New screen in your WordPress admin panel and click the Upload button at the top next to the "Add Plugins" title.
  3. Upload the zipped archive.
  4. Click the Activate Plugin link after installation completes.

Manual

  1. Download the latest release from GitHub.
  2. Unzip the archive.
  3. Copy the folder to /wp-content/plugins/.
  4. Go to the Plugins → Installed Plugins screen in your WordPress admin panel and click the Activate link under the YouTube Embed Parameters item.

Read the Codex for more information about installing plugins manually.

Git

Clone this repository in /wp-content/plugins/:

git clone git@github.com:cedaro/youtube-embed-parameters.git

Then go to the Plugins → Installed Plugins screen in your WordPress admin panel and click the Activate link under the YouTube Embed Parameters item.

About

A WordPress plugin to customize parameters for embedded Youtube players.


Languages

Language:PHP 94.8%Language:JavaScript 5.2%