| CARVIEW |
Select Language
HTTP/2 301
date: Sun, 28 Dec 2025 05:55:07 GMT
content-type: text/html; charset=UTF-8
location: https://docs.gravityforms.com/gform_export_lines/
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: MISS
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=j%2FFsvOOK5j2rJ7EBJD%2F6%2F0SUnwmNpw5n3UcU6mm3Bi02FtvoMwEKmipdasyoN27qDxd3FKLO03%2FiGjU%2BbnFgHbTc4OpI%2FH5TDNbHMihjWh8K%2B6yc"}]}
cf-ray: 9b4ece92ef3e860e-BLR
HTTP/2 200
date: Sun, 28 Dec 2025 05:55:08 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=m8AkRYjYPf7P1zUXGdPau%2FpETzuE573t0W31pcx56wok2eN9154B%2BOaqvt63lJIuSUHJtWnrDVjQFb5mw%2F6VkRpiFuu15UG0AXpaDFqZYTSLihXI"}]}
cf-cache-status: DYNAMIC
nel: {"report_to":"cf-nel","success_fraction":0.0,"max_age":604800}
content-encoding: gzip
cf-ray: 9b4ece963b32860e-BLR
gform_export_lines - Gravity Forms Documentation
gform_export_lines
Description
This filter can be used to allow the csv entry export lines to be filtered just before they are saved to the temporary file.
Usage
add_filter( 'gform_export_lines', 'your_function_name' );
Parameters
- $lines string
The lines to be included in the .csv export.
Example
This example fixes an issue on Excel for Mac.
add_filter( 'gform_export_lines', 'fix_csv_entry_export' );
function fix_csv_entry_export ( $lines ) {
return mb_convert_encoding( $lines, 'UTF-16LE', 'UTF-8' );
}
Placement
This code should be placed in the functions.php file of your active theme.
Source Code
$lines = apply_filters( 'gform_export_lines', $lines );
This filter is located in GFExport::start_export() in export.php.
Since
This filter was added in Gravity Forms 1.9.1.