gform_payment_stale_threshold_minutes

Description

The gform_payment_stale_threshold_minutes filter allows developers to customize the threshold for considering an entry with a “Processing” payment status as stale. By default, this threshold is set to 60 minutes.

Usage

add_filter( 'gform_payment_stale_threshold_minutes', 'my_function_name' );

Parameters

ParameterTypeDescription
$threshold_minutesintThe threshold time in minutes after which a “Processing” payment status is considered stale. Default is 60.

Examples

Change the stale payment threshold to 5 minutes.

add_filter( 'gform_payment_stale_threshold_minutes', function( $threshold_minutes ) {
    return 5;
} );

Placement

This code can be used in the functions.php file of the active theme, a custom functions plugin, a custom add-on, or with a code snippets plugin.

See also the PHP section in this article: Where Do I Put This Code?

Source Code

This filter is located in includes/addon/class-gf-payment-addon.php

Since

This filter was added in Gravity Forms 2.9.28.