WordPress filter hook
wc_wallee_subscription_create_transaction
Fired by 2 WordPress plugins, running on 410+ sites between them.
How to use wc_wallee_subscription_create_transaction
It's a filter: your callback receives the value and 1 more argument, and must return the (changed) value.
Add this to your theme's functions.php or a small custom plugin:
add_filter( 'wc_wallee_subscription_create_transaction', function( $create_transaction, $order ) {
// Change $create_transaction here.
return $create_transaction;
}, 10, 2 );Argument names come from wallee's source. Other plugins may pass different values: check the call in the plugin you're targeting below.
2 plugins that fire wc_wallee_subscription_create_transaction
Sorted by active installs. Each entry shows where the plugin calls the hook and what it passes.
-
wallee400+ installs
apply_filters( 'wc_wallee_subscription_create_transaction', $create_transaction, $order )includes/service/class-wc-wallee-service-transaction.php:1308 -
wallee Subscription10+ installs
apply_filters( 'wc_wallee_subscription_create_transaction', $create_transaction, $order )build-woo/src/includes/service/class-wc-wallee-subscription-service-transaction.php:47
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.