gravityflowpdf_file_name

Use this filter to change the name of the PDF file.

Parameters

$file_name string
The file name

$entry_id integer
The Entry ID

$form_id integer
The Form ID

Example

This example adds a prefix to the the name of the file.

add_filter( 'gravityflowpdf_file_name', 'sh_gravityflowpdf_file_name', 10, 2 );  
function sh_gravityflowpdf_file_name( $file_name, $entry_id, $form_id ) {
      return 'my-pdf-' . $file_name;
} 

Placement

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

Still need help? Contact Support Contact Support