WordPress filter hook
securesubmit_before_gift_cards_order_total
Fired by 2 WordPress plugins, running on 1,500+ sites between them.
How to use securesubmit_before_gift_cards_order_total
It's a filter: your callback receives the value and 2 more arguments, and must return the (changed) value.
Add this to your theme's functions.php or a small custom plugin:
add_filter( 'securesubmit_before_gift_cards_order_total', function( $order_total_html, $original_total, $message ) {
// Change $order_total_html here.
return $order_total_html;
}, 10, 3 );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_before_gift_cards_order_total
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_before_gift_cards_order_total', $order_total_html, $original_total, $message )src/Gateways/HeartlandGiftCards/HeartlandGiftGateway.php:305 -
Global Payments SecureSubmit Gateway500+ installs
apply_filters( 'securesubmit_before_gift_cards_order_total', $order_total_html, $original_total, $message )classes/class-wc-gateway-securesubmit-giftcards.php:157
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.