Home / Admin / Hide payment icons for trials
Duplicate Snippet

Embed Snippet on Your Site

Hide payment icons for trials

Hides the payment icons on checkout when the item in the card is a free trial

Code Preview
php
<?php
function edd_library_maybe_show_payment_icons() {
	if ( edd_recurring()->cart_has_free_trial() ) {
		add_filter( 'edd_get_option_accepted_cards', '__return_false' );
	}
}
add_action( 'init', 'edd_library_maybe_show_payment_icons', 99 );

Comments

Add a Comment