Using Gravity Forms ‘gform_dropbox_ssl_compatibility’ PHP filter

The gform_dropbox_ssl_compatibility filter allows you to override the SSL compatibility checks within the Dropbox add-on. This can be helpful if a false negative is reported for an installed SSL certificate.


add_filter('gform_dropbox_ssl_compatibility', '__return_true');


  • $ssl_support (bool): Indicates if SSL is supported. If the gravityformsaddon_gravityformsdropbox_ssl option is present, returns true. Otherwise, returns the result of checks.

More information

See Gravity Forms Docs: gform_dropbox_ssl_compatibility

This code should be placed in the functions.php file of your active theme, or ideally, in its own plugin.

The filter is located in dropbox.php.


Force SSL compatibility for Dropbox Add-On

Force the Dropbox Add-On to be SSL compatible even if the check fails.

add_filter('gform_dropbox_ssl_compatibility', 'force_ssl_compatibility');
function force_ssl_compatibility($ssl_support) {
    return true;

Disable SSL compatibility for Dropbox Add-On

Disable the SSL compatibility for the Dropbox Add-On.

add_filter('gform_dropbox_ssl_compatibility', 'disable_ssl_compatibility');
function disable_ssl_compatibility($ssl_support) {
    return false;

Log SSL compatibility check result

Log the result of the SSL compatibility check.

add_filter('gform_dropbox_ssl_compatibility', 'log_ssl_compatibility', 10, 1);
function log_ssl_compatibility($ssl_support) {
    error_log('SSL compatibility check result: ' . ($ssl_support ? 'true' : 'false'));
    return $ssl_support;

Custom SSL compatibility condition

Set custom condition for SSL compatibility based on the site’s domain.

add_filter('gform_dropbox_ssl_compatibility', 'custom_ssl_compatibility', 10, 1);
function custom_ssl_compatibility($ssl_support) {
    if (strpos($_SERVER['HTTP_HOST'], '') !== false) {
        return true;
    return $ssl_support;

Check SSL compatibility against a custom list of supported hosts

Check if the host is in a custom list of SSL supported hosts.

add_filter('gform_dropbox_ssl_compatibility', 'check_ssl_compatibility_with_custom_list', 10, 1);
function check_ssl_compatibility_with_custom_list($ssl_support) {
    $supported_hosts = array('', '', '');

    if (in_array($_SERVER['HTTP_HOST'], $supported_hosts)) {
        return true;
    return $ssl_support;