Filter: gform_permission_granted_pre_download
Allow custom logic to be used to determine if the file can be accessed.
Parameters
| Name | Type | Description |
|---|---|---|
| $permission_granted | bool | Indicates if access to the file has been granted. Default is the result of the hash validation. |
| $form_id | string | The ID of the form used to upload the requested file. |
| $field_id | string | The ID of the field used to upload the requested file. |
Since
Source
Defined in includes/class-gf-download.php at line 52