Created
April 3, 2020 12:25
-
-
Save bouveng/32c5d3c71e1b061c846e065f0ddd18ea to your computer and use it in GitHub Desktop.
partner_id
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
add_action('wp_footer', 'add_partner_id'); | |
function add_partner_id() { | |
echo ' | |
<script> | |
( function( $ ) { | |
$("a[href*=\'thomann.de\']").each(function() { | |
$(this).attr("href", $(this).attr("href") + "?partner_id=XXXX"); | |
}); | |
} )( jQuery ) | |
</script> | |
'; | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment