gform_dropbox_request_timeout

gform_dropbox_request_timeout

DescriptionUsageParametersExamplesPlacementSinceSource Code

Description

The 「gform_dropbox_request_timeout」 filter in the Gravity Forms Dropbox Add-On allows the request timeout length for the feed processing request to be modified.

Usage

add_filter( 'gform_dropbox_request_timeout', 'your_function_name', 10, 1 );

Parameters

$timeout int
The time in seconds before the connection is dropped and an error returned.

Examples

add_filter( 'gform_dropbox_request_timeout', 'gf_change_timeout' );
function gf_change_timeout( $timeout ){
return 90; // Change 90 to a higher value if needed.
}

Placement

This code should be placed in the functions.php file of your active theme.

Since

This filter was added in version 2.0.

Source Code

This filter is located in GF_Dropbox::maybe_process_feed_on_shutdown() in gravityformsdropbox/class-gf-dropbox.php.

发表回复

您的邮箱地址不会被公开。 必填项已用 * 标注