Created
June 15, 2015 18:13
-
-
Save ericakfranz/cb3e16089d2a09b66adb to your computer and use it in GitHub Desktop.
Soliloquy change Wistia Video Arguments
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Plugin Name: Soliloquy - Change Wistia Video Arguments | |
* Plugin URI: http://soliloquywp.com | |
* Version: 1.0 | |
* Author: Erica Franz | |
* Author URI: https://fatpony.me | |
* Description: Add, edit or remove arguments for the Wistia Video Slides | |
*/ | |
/** | |
* Change the default Wistia Video Arguments | |
* | |
* @param array $args Default Arguments | |
* @return array New Arguments | |
*/ | |
function soliloquy_change_wistia_args( $args ) { | |
/** | |
* Defaults: | |
* 'version' => 'v1', | |
* 'wmode' => 'opaque', | |
* 'volumeControl' => 1, | |
* 'controlsVisibleOnLoad' => 1, | |
* 'videoFoam' => 1 | |
*/ | |
$args['controlsVisibleOnLoad'] = 0; | |
return $args; | |
} | |
add_filter( 'soliloquy_wistia_args', 'soliloquy_change_wistia_args' ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment