Skip to main content

Filter: gform_permission_granted_pre_download

Allow custom logic to be used to determine if the file can be accessed.

Parameters

NameTypeDescription
$permission_grantedboolIndicates if access to the file has been granted. Default is the result of the hash validation.
$form_idstringThe ID of the form used to upload the requested file.
$field_idstringThe ID of the field used to upload the requested file.

Since

Source

Defined in includes/class-gf-download.php at line 52