Skip to content

Instantly share code, notes, and snippets.

@foliovision
Last active October 17, 2016 09:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save foliovision/b14893ecd7458a417992 to your computer and use it in GitHub Desktop.
Save foliovision/b14893ecd7458a417992 to your computer and use it in GitHub Desktop.
FV Flowplayer Crossdomain Licensing
<?php
add_action( 'wp_footer', 'custom_fv_flowplayer_crossdomain_license', 9999 );
function custom_fv_flowplayer_crossdomain_license() {
?>
<script>
if( typeof(flowplayer) != "undefined" ) {
if( location.hostname == "your-domain.de" ){
flowplayer.conf.key = '$1234567890';
} else if( location.hostname == "your-domain.it" ){
flowplayer.conf.key = '$1234567890';
} else if( location.hostname == "your-domain.eu" ){
flowplayer.conf.key = '$1234567890';
}
}
</script>
<?php
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment