The gform_hipchat_verify_ssl filter in the Gravity Forms HipChat Add-On allows the verification of HipChat SSL to be enabled or disabled.
Usage
add_filter('gform_hipchat_verify_ssl', 'your_function_name', 10, 1);
Parameters
- $verify_ssl (bool): True or False to verify SSL.
More information
See Gravity Forms Docs: gform_hipchat_verify_ssl
Examples
Disable SSL verification
In this example, we will disable SSL verification for HipChat.
add_filter('gform_hipchat_verify_ssl', 'disable_ssl', 10, 1); function disable_ssl($verify_ssl) { return false; }
Enable SSL verification
In this example, we will enable SSL verification for HipChat.
add_filter('gform_hipchat_verify_ssl', 'enable_ssl', 10, 1); function enable_ssl($verify_ssl) { return true; }
Toggle SSL verification based on a condition
In this example, we will toggle SSL verification for HipChat based on a custom condition.
add_filter('gform_hipchat_verify_ssl', 'toggle_ssl', 10, 1); function toggle_ssl($verify_ssl) { // Check your custom condition $custom_condition = true; // Replace with your condition return $custom_condition; }
Disable SSL verification for a specific form
In this example, we will disable SSL verification for HipChat for a specific Gravity Form.
add_filter('gform_hipchat_verify_ssl', 'disable_ssl_for_form', 10, 1); function disable_ssl_for_form($verify_ssl) { global $form; // Replace 5 with the ID of the form if ($form['id'] == 5) { return false; } return $verify_ssl; }
Enable SSL verification for a specific form
In this example, we will enable SSL verification for HipChat for a specific Gravity Form.
add_filter('gform_hipchat_verify_ssl', 'enable_ssl_for_form', 10, 1); function enable_ssl_for_form($verify_ssl) { global $form; // Replace 5 with the ID of the form if ($form['id'] == 5) { return true; } return $verify_ssl; }