Last active
January 28, 2017 10:20
-
-
Save Magneticdud/e1c9d0d4b4bc928ec342f696676830ea to your computer and use it in GitHub Desktop.
Viglink wordpress support sucks, an huge plugin that doesn't even work correctly
This file contains 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: Viglink-easy | |
Description: Viglink wordpress support sucks, an huge plugin that doesn't even work correctly | |
*/ | |
add_action('wp_footer', 'viglinkeasy'); | |
function viglinkeasy(){ | |
?> | |
<script type="text/javascript"> | |
var vglnk = { key: 'x' }; | |
(function(d, t) { | |
var s = d.createElement(t); s.type = 'text/javascript'; s.async = true; | |
s.src = '//cdn.viglink.com/api/vglnk.js'; | |
var r = d.getElementsByTagName(t)[0]; r.parentNode.insertBefore(s, r); | |
}(document, 'script')); | |
</script> | |
<?php | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment