fg_legalsigning_base_path

Description

This filter allows you to change the base folder where generated documents are stored.

Usage

PHP
add_filter( 'fg_legalsigning_base_path', 'your_function_name', 10, 1 );

Parameters

  • $base_path string
    The base documents folder. Defaults to /wp-content/uploads/gravity_forms/fillablepdfs

Examples

This example shows how to change the default base documents folder to a custom static location.

<?php
/**
* Modify the base folder where generated documents are stored.
*
* @param string $base_path The base documents folder. Defaults to wp-content/uploads/gravity_forms/fillablepdfs.
*/
add_filter( 'fg_legalsigning_base_path', function( $base_path ) {
return '/path/to/pdfs/folder';
}, 10, 1 );

Since

This filter was added in Legal Signing 1.0