Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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