WordPress filter hook
securesubmit_zero_balance_message
Fired by 2 WordPress plugins, running on 1,500+ sites between them.
How to use securesubmit_zero_balance_message
It's a filter: your callback receives the value, and must return the (changed) value.
Add this to your theme's functions.php or a small custom plugin:
add_filter( 'securesubmit_zero_balance_message', function( $sprintf ) {
// Change $sprintf here.
return $sprintf;
}, 10, 1 );Argument names come from GlobalPayments Gateway Provider for WooCommerce's source. Other plugins may pass different values: check the call in the plugin you're targeting below.
2 plugins that fire securesubmit_zero_balance_message
Sorted by active installs. Each entry shows where the plugin calls the hook and what it passes.
-
GlobalPayments Gateway Provider for WooCommerce1,000+ installs
apply_filters( 'securesubmit_zero_balance_message', sprintf( esc_html__( '%s has a balance of zero and could not be applied to this order.', 'globalpayments-gateway-provider-for-woocommerce' ), $gift_card_object_entered->gift_card_name ) )src/Gateways/HeartlandGiftCards/HeartlandGiftGateway.php:159 -
Global Payments SecureSubmit Gateway500+ installs
apply_filters( 'securesubmit_zero_balance_message', sprintf( __('%s has a balance of zero and could not be applied to this order.', 'wc_securesubmit'), $gift_card_object_entered->gift_card_name ) )classes/class-wc-gateway-securesubmit-giftcards.php:109
Need a customisation built on this hook?
Tell us what you want to change and which plugin it's for. We'll write it, test it and send it back as a small plugin.