WordPress filter hook
give_create_payment
Defined by GiveWP and fired by 5 plugins in total, running on 100K+ sites between them.
“Filter the payment params.”
How to use give_create_payment
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( 'give_create_payment', function( $insert_payment_data ) {
// Change $insert_payment_data here.
return $insert_payment_data;
}, 10, 1 );Argument names come from GiveWP's source. Other plugins may pass different values: check the call in the plugin you're targeting below.
5 plugins that fire give_create_payment
Sorted by active installs. Each entry shows where the plugin calls the hook and what it passes.
-
GiveWP100,000+ installs
apply_filters( 'give_create_payment', $insert_payment_data )includes/payments/functions.php:323 -
Bayarcash GiveWP30+ installs
apply_filters( 'give_create_payment', $insert_payment_data )includes/src/Givewp.php:123 -
SecurePay For GiveWP10+ installs
apply_filters( 'give_create_payment', $insert_payment_data )includes/src/GiveWP_SecurePay.php:527 -
Kineticpay for GiveWPFewer than 10 installs
apply_filters( 'give_create_payment', $insert_payment_data )includes/give-kineticpay-gateway.php:73 -
SwipeGo for GiveWPFewer than 10 installs
apply_filters( 'give_create_payment', $insert_payment_data )includes/class-swipego-gwp-gateway.php:343
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.