WordPress action hook
gestpay_on_renewal_payment_failure
Fired by 2 WordPress plugins, running on 1,080+ sites between them.
“Legacy GestPay hook alias (deprecated).”
How to use gestpay_on_renewal_payment_failure
It's an action: your callback runs at that point and receives 3 arguments. Nothing needs to be returned.
Add this to your theme's functions.php or a small custom plugin:
add_action( 'gestpay_on_renewal_payment_failure', function( $renewal_order, $message, $object ) {
// Your code runs here.
}, 10, 3 );Argument names come from Ecommerce Fabrick's source. Other plugins may pass different values: check the call in the plugin you're targeting below.
2 plugins that fire gestpay_on_renewal_payment_failure
Sorted by active installs. Each entry shows where the plugin calls the hook and what it passes.
-
Ecommerce Fabrick1,000+ installs
do_action( 'gestpay_on_renewal_payment_failure', $renewal_order, $message, $this )inc/class-gestpay-subscriptions.php:480 -
Fabrick Payment Orchestra80+ installs
do_action( 'gestpay_on_renewal_payment_failure', $renewal_order, $message, wc_get_payment_gateway_by_order( $renewal_order ) )src/Subscriptions/MitRenewalService.php:563
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.