Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
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.
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