| CARVIEW |
Select Language
HTTP/2 301
date: Mon, 29 Dec 2025 12:34:39 GMT
content-type: text/html; charset=UTF-8
location: https://docs.gravityforms.com/gform_post_export_entries/
server: cloudflare
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
content-security-policy: frame-ancestors 'self';
referrer-policy: no-referrer
referrer-policy: strict-origin-when-cross-origin
x-redirect-by: WordPress
fastcgi-cache: HIT
cf-cache-status: DYNAMIC
nel: {"report_to":"cf-nel","success_fraction":0.0,"max_age":604800}
report-to: {"group":"cf-nel","max_age":604800,"endpoints":[{"url":"https://a.nel.cloudflare.com/report/v4?s=U4XmK5xy2WDjBxOeB%2BCdREFeIKFkDNT9v%2BjLK8n4LljCc1%2B%2BRPZaeJD3r7tiXYz%2BBqvU5aExFfh67RT7OUt7oYzZDhaaC%2FJojC7%2FDorH3Le%2BwSDo"}]}
cf-ray: 9b59552fe91958e1-BLR
HTTP/2 200
date: Mon, 29 Dec 2025 12:34:39 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
content-security-policy: frame-ancestors 'self';
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=iVPAnngUzcGQCfGPwQWw%2Fim5crfMtT0XU%2BPhtAdjHIxe%2FqWQX6Aq%2FRqcEs4GwK%2Bo0X14m%2FJv%2FzW8MUgjxt5yYWuTZ7LoWzz7sVQ%2B4MeoBjq6tPvL"}]}
cf-cache-status: DYNAMIC
nel: {"report_to":"cf-nel","success_fraction":0.0,"max_age":604800}
content-encoding: gzip
cf-ray: 9b595534af1e58e1-BLR
gform_post_export_entries - Gravity Forms Documentation
gform_post_export_entries
Description
Triggered after exporting entries from a form, allowing further actions to be performed.
Usage
add_action( 'gform_post_export_entries', 'my_function', 10, 5 );
Parameters
- $form array
The form object to get the entries from.
-
$start_date string
The start date from where the entries exported will begin.
-
$end_date string
The end date on which the entry export will stop.
-
$array array
The field IDs from which entries are being exported.
-
$export_id string
The unique ID for the export. Since version 2.4.6.
Examples
1. Basic usage
function my_function() {
//Do something here
}
add_action( 'gform_post_export_entries', 'my_function', 10, 5 );
2. Append additional entries
The following shows how additional entries can be appended to the entry export when using Gravity Forms 2.4.6 or greater.
add_action( 'gform_post_export_entries', function ( $form, $start_date, $end_date, $fields, $export_id ) {
$entries = array(); // Define or get the additional entries here.
$lines = '';
foreach ( $entries as $entry ) {
$lines .= GFExport::get_entry_export_line( $entry, $form, $fields, array(), ',' );
$lines .= "\n";
}
if ( ! seems_utf8( $lines ) ) {
$lines = utf8_encode( $lines );
}
GFExport::write_file( $lines, $export_id );
}, 10, 5 );
Since
This filter was added in Gravity Forms version 1.9.3.
Added the “export_id” parameter in version 2.4.6.
Source Code
This action hook is located in export.php.