Description
The “gform_highrise_verifyhost” filter in the Gravity Forms Highrise Add-On allows the cURL CURLOPT_SSL_VERIFYHOST option to be enabled/disabled.
Usage
add_filter( 'gform_highrise_verifyhost', 'your_function_name', 10, 1 );
Parameters
- is_enabled bool
True to enable host verification. False to bypass host verification. Defaults to true.
Examples
add_filter( 'gform_highrise_verifyhost', 'verifyhost', 10, 1 ); function verifyhost( $is_enabled ){ return false; }
Placement
This code should be placed in the functions.php file of your active theme.
Since
This filter was added in version 1.2
Source Code
This filter is located in HighriseAPI::make_request() in gravityformshighrise/includes/Highrise/HighriseAPI.php.