Hide the “Gift Card Applied” notice for zero balance cards

When a gift card has a zero balance and it is added to the cart, there will be two messages displayed:

“Gift Card Applied”

“This gift card has a zero balance”

You can prevent the “Gift Card Applied” message from appearing by following these steps:

1. Download the free Code Snippets plugin: https://wordpress.org/plugins/code-snippets/
2. Create a Snippet with the following code (Note: If you are more comfortable with editing your functions.php you can do that instead of Code Snippets.):

function custom_pwgc_show_gift_card_applied_message( $show, $gift_card ) {
    if ( $gift_card->get_balance() > 0 ) {
        return true;
    } else {
        return false;
add_filter( 'pwgc_show_gift_card_applied_message', 'custom_pwgc_show_gift_card_applied_message', 10, 2 );