Remove Credit Card icons on Checkout Page For Free Downloads in EDD

This is useful is you offer some free downloads in your Easy Digital Downloads shop, and you want to remove the credit card icons from the Checkout page only for free downloads.


 * For free downloads, remove credit card icons from checkout page
function isa_free_download_remove_cc() {
	if ( function_exists('edd_get_cart_total')) {
		if ( edd_get_cart_total() < 0.001 ) {
			// Remove credit card icons
			remove_action( 'edd_payment_mode_top', 'edd_show_payment_icons' );
			remove_action( 'edd_checkout_form_top', 'edd_show_payment_icons' );
add_action( 'init', 'isa_free_download_remove_cc' );

For offering free downloads in your EDD shop, you may also want to see Remove Agree To Terms For Free Downloads and Bypass Checkout For Free WP Repository Plugins.

See more:


Questions and Comments are Welcome

Your email address will not be published. All comments will be moderated.

Please wrap code in "code" bracket tags like this: