<?php
/**
* Plugin Name: Soliloquy - Change YouTube Video Arguments
* Plugin URI: http://soliloquywp.com
* Version: 1.0
* Author: Tim Carr
* Author URI: http://www.n7studios.co.uk
* Description: Add, edit or remove arguments for the YouTube Video Slides
*/
/**
* Change the default YouTube Video Arguments
*
* @param array $args Default Arguments
* @return array New Arguments
*/
function soliloquy_change_youtube_args( $args ) {
/**
* Defaults:
* 'enablejsapi' => 1,
* 'version' => 3,
* 'wmode' => 'transparent',
* 'rel' => 0,
* 'showinfo' => 0,
* 'modestbranding' => 1,
* 'autoplay' => 1,
* 'origin' => get_home_url()
*/
$args['autohide'] = 1;
$args['controls'] = 0;
return $args;
}
add_filter( 'soliloquy_youtube_args', 'soliloquy_change_youtube_args' );