DescriptionUsageParametersExamplesPlacementSinceSource Code
Description
The 「gform_stripe_entry_not_found_status_code」 filter in Gravity Forms Stripe Add-On allows the status code for the entry not found WP_Error to be overridden.
Usage
add_filter( 'gform_stripe_entry_not_found_status_code', 'your_function_name', 10, 3 );
Parameters
$status_code int
The status code. Default is 200.
$action array
An associative array containing the event details.
$event Stripe Event Object
The Stripe event object for the webhook which was received.
Examples
add_filter( 'gform_stripe_entry_not_found_status_code', 'change_status_code', 10, 3 );
function change_status_code( $status_code, $action, $event ){
return "205";
}
Placement
This code should be placed in the functions.php file of your active theme.
Since
This filter was added in Gravity Forms Stripe version 2.5.1.
Source Code
This filter is located in GFStripe::callback() in gravityformsstripe/class-gf-stripe.php.