gform_export_max_execution_time

Description

Allows the maximum execution time for exporting entries to be changed.

When the maximum execution time is reached, the export routine stops briefly and submits another AJAX request to continue exporting entries from the point it stopped.

Usage

add_filter( 'gform_export_max_execution_time', 'your_function_name, 10, 2 );

Parameters

  • $max_execution_time int

    The number of seconds for which each request should run. Defaults to 20.

  • $form Form Object

    The current form.

Example

add_filter( 'gform_export_max_execution_time', 'change_export_time', 10, 2 );
function change_export_time( $max_execution_time, $form ){
        //change the execution time to 60 seconds
	return 60;
}

Placement

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

Since

This filter was added in Gravity Forms version 2.0.3.10.

Source Code

This filter is located in GFExport::start_export() in export.php.