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
- Download the latest release from GitHub.
- 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.
- Upload the zipped archive.
- Click the Activate Plugin link after installation completes.
Manual
- Download the latest release from GitHub.
- Unzip the archive.
- Copy the folder to
/wp-content/plugins/
. - 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.