Skip to content

Instantly share code, notes, and snippets.

@SeanChDavis
Created March 21, 2016 18:23
Show Gist options
  • Save SeanChDavis/6ac895018510b08df1f5 to your computer and use it in GitHub Desktop.
Save SeanChDavis/6ac895018510b08df1f5 to your computer and use it in GitHub Desktop.
EDD adjust checkout discount format
<?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