Skip to content

Instantly share code, notes, and snippets.

@barrykooij
Created September 22, 2016 13:01
Show Gist options
  • Save barrykooij/8bb3e716e807a4ccba99a178d4f63ae7 to your computer and use it in GitHub Desktop.
Save barrykooij/8bb3e716e807a4ccba99a178d4f63ae7 to your computer and use it in GitHub Desktop.
<script>
var dlm_has_access = 1;
<?php if ( ! apply_filters( 'dlm_can_download', true, $download, $version ) ) : ?>
dlm_has_access = 0;
<?php endif ?>
_gscq = window._gscq || [];
_gscq.push(['targeting','dlm_has_access', dlm_has_access]);
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment