Last active
January 1, 2016 02:19
-
-
Save amdrew/8078696 to your computer and use it in GitHub Desktop.
Allows you to append a string to the sharing URL for all social networks so you can track purchases better, Requires EDD Social Discounts v2.0.1 or newer. https://easydigitaldownloads.com/extensions/edd-social-discounts/
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 | |
function sumobi_edd_social_discounts_share_url( $url ) { | |
// append to URL | |
$url .= '?source=social_share'; | |
return $url; | |
} | |
add_filter( 'edd_social_discounts_share_url', 'sumobi_edd_social_discounts_share_url' ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment