Skip to content

Instantly share code, notes, and snippets.

@blakewilson
Created February 18, 2018 20:41
Show Gist options
  • Save blakewilson/f8db3a713be66f01eb0e96d62afe8926 to your computer and use it in GitHub Desktop.
Save blakewilson/f8db3a713be66f01eb0e96d62afe8926 to your computer and use it in GitHub Desktop.
Video Background Pro Default Mobile Playback Behavior
<?php
/**
* Define Video Background Pro's Default Mobile Playback Behavior
*
* @since 2.2.0
* @author Push Labs
* @param String $default Please note that $default is a STRING, not BOOLEAN.
* @return String $default The default behavior.
*/
function themeprefix_vidbgpro_play_on_mobile_default( $default ) {
$default = 'true';
return $default;
}
add_filter( 'vidbgpro_play_on_mobile_default', 'themeprefix_vidbgpro_play_on_mobile_default' );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment