Skip to content

Instantly share code, notes, and snippets.

@amdrew
Last active January 1, 2016 02:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save amdrew/8078696 to your computer and use it in GitHub Desktop.
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/
<?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