Description
Allows for override of SSL replacement.
By default Gravity Forms will attempt to determine if the schema of the URL should be overwritten for SSL. This is not ideal for all situations, particularly domain mapping. Setting $field_ssl to false will prevent the override.
Usage
The following would apply to all forms.
add_filter( 'gform_secure_file_download_is_https', 'your_function_name', 10, 3 );
Parameters
| Parameter | Type | Description |
|---|---|---|
$field_ssl | bool | True to allow override if needed or false if not. Defaults to true. |
$file_url | string | The file URL in question. |
$field | GF_Field_Fileupload | The field object for further context. |
Placement
This code can be used in the functions.php file of the active theme, a custom functions plugin, a custom add-on, or with a code snippets plugin.
See also the PHP section in this article: Where Do I Put This Code?
Source Code
This filter is located in class-gf-field-fileupload.php.