Created
July 27, 2017 15:45
-
-
Save SeanTOSCD/0d91c54dbc3bb130098d0ed16b5ac1c2 to your computer and use it in GitHub Desktop.
EDD SL add discount code to email renewal link
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 // 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