Created
March 21, 2016 18:23
-
-
Save SeanChDavis/6ac895018510b08df1f5 to your computer and use it in GitHub Desktop.
EDD adjust checkout discount format
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 | |
function pw_custom_discounts_html( $html, $discounts, $rate, $remove_url ) { | |
$html = str_replace( '%', ' %', $html ); | |
return $html; | |
} | |
add_filter( 'edd_get_cart_discounts_html', 'pw_custom_discounts_html', 10, 4 ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment