gform_secure_file_download_is_https

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

  • $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 should be placed in the functions.php file of your active theme.

Source Code

This filter is located in class-gf-field-fileupload.php.