gform_form_export_filename

Description

Allows the form export filename to be changed.

Note: Do not include a file extension. The extension “.json” is added.

Usage

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

Parameters

  • $filename string

    The new filename to use for the export file.

Example

add_filter( 'gform_form_export_filename', function( $filename ) {
    return 'new-filename-without-extension';
} );

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.3.4.

Source Code

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