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.
Carlos
January 23rd, 2022 at 5:33 pm
Hi Isabel! I am working on a WordPress MVP EDD based project and I think having close someone like you with the expertise to help me solving technical issues or work on custom features would be really valuable for the project.
Can we get in touch?