Skip to content

Instantly share code, notes, and snippets.

@SeanTOSCD
Created July 27, 2017 15:45
Show Gist options
  • Save SeanTOSCD/0d91c54dbc3bb130098d0ed16b5ac1c2 to your computer and use it in GitHub Desktop.
Save SeanTOSCD/0d91c54dbc3bb130098d0ed16b5ac1c2 to your computer and use it in GitHub Desktop.
EDD SL add discount code to email renewal link
<?php // DO NOT COPY THIS LINE
// add discount code Software Licensing renewal email {renewal_link} tag
function edd_sl_renewal_link_discount( $url ) {
$url = $url . '&discount=DISCOUNTCODE';
return $url;
}
add_filter( 'edd_sl_renewal_link', 'edd_sl_renewal_link_discount' );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment