gform_highrise_verifypeer

gform_highrise_verifypeer

DescriptionUsageParametersExamplesPlacementSinceSource Code

Description
The 「gform_highrise_verifypeer」 filter in the Gravity Forms Highrise Add-On allows the cURL CURLOPT_SSL_VERIFYPEER option to be enabled/disabled.
Usage
add_filter( 'gform_highrise_verifypeer', 'your_function_name', 10, 1 );

Parameters

is_enabled bool
True to enable peer verification. False to bypass peer verification. Defaults to true.

Examples
add_filter( 'gform_highrise_verifypeer', 'verifypeer', 10, 1 );
function verifypeer( $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.

发表回复

您的电子邮箱地址不会被公开。 必填项已用 * 标注