Version: 5
🔥 Gravity PDF v5 end of life was 2023-04-28 and this version is no longer supported. This legacy documentation is kept for reference only.
gfpdf_working_folder_name
Description
By default, the PDF working directory is called PDF_EXTENDED_TEMPLATES
. Using this filter you can easily change the name.
Parameters
$folder | array
- The folder name of the PDF working directory
Usage
This snippet shows how to change the PDF working directory name:
add_action( 'gfpdf_working_folder_name', function( $folder ) {
return 'PDF_Templates';
} );
Source Code
This filter is located in the Model_Install::get_working_directory()
method of /src/model/Model_Install.php
.