CARVIEW |
Select Language
HTTP/2 200
date: Sun, 12 Oct 2025 01:08:21 GMT
content-type: text/html; charset=UTF-8
server: cloudflare
vary: Accept-Encoding
strict-transport-security: max-age=604800
strict-transport-security: max-age=31536000; includeSubDomains
x-content-type-options: nosniff
x-content-type-options: nosniff
x-xss-protection: 1; mode=block
x-xss-protection: 1; mode=block
x-frame-options: SAMEORIGIN
x-frame-options: SAMEORIGIN
referrer-policy: no-referrer
referrer-policy: strict-origin-when-cross-origin
link: ; rel="https://api.w.org/"
link: ; rel="alternate"; title="JSON"; type="application/json"
link: ; rel=shortlink
fastcgi-cache: HIT
report-to: {"group":"cf-nel","max_age":604800,"endpoints":[{"url":"https://a.nel.cloudflare.com/report/v4?s=YLVIFps1Od%2BJCjV%2F9htzlb7VSGbHUdYGFpZlWCS%2FofeXGNWmugt5T6oTvgnTe%2BoflJgkiZK1DtQW1xnNurBtcKT60VWX4yjQaLhIVe63SoKLwOGh"}]}
cf-cache-status: DYNAMIC
nel: {"report_to":"cf-nel","success_fraction":0.0,"max_age":604800}
content-encoding: gzip
cf-ray: 98d2b49b9abec1f7-BLR
gform_action_pre_payment_callback - Gravity Forms Documentation
gform_action_pre_payment_callback
Description
Runs a function after payment, before the callback occurs.
Usage
add_action( 'gform_action_pre_payment_callback', 'my_function', 10, 2 );
Parameters
- $action array
Array for the payment action triggered.
-
$entry Entry Object
Entry object for the new entry.
Examples
function my_function( $action, $entry ) {
if ( $action['type'] === 'complete_payment' ) {
// Do something
}
}
add_action( 'gform_action_pre_payment_callback', 'my_function', 10, 2 );
Source Code
do_action( 'gform_action_pre_payment_callback', $action, $entry );
This action hook is located in GFPaymentAddOn::process_callback_action() in includes/addon/class-gf-payment-addon.php.