Last active
November 17, 2021 14:12
-
-
Save somewherewarm-snippets/23799ed69fa4105316574aac7fdc8986 to your computer and use it in GitHub Desktop.
Use this snippet to display the remaining balance of any applied gift cards in the cart/checkout page.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Plugin Name: WooCommerce Gift Cards - Display remaining gift cards balance | |
* Plugin URI: https://woocommerce.com/products/gift-cards/ | |
* Description: Use this snippet to display the remaining balance of any applied gift cards in the cart/checkout page. | |
* Version: 1.0 | |
* Author: WooCommerce | |
* Author URI: https://woocommerce.com/ | |
* Developer: Jason Kytros | |
* | |
* | |
* Copyright: © 2021 Automattic | |
* License: GNU General Public License v3.0 | |
* License URI: http://www.gnu.org/licenses/gpl-3.0.html | |
*/ | |
add_filter( 'woocommerce_gc_checkout_show_remaining_balance_per_gift_card', '__return_true' ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment