gform_paypalpaymentspro_verifypeer

gform_paypalpaymentspro_verifypeer

DescriptionUsageParametersExamplesSinceSource Code

Description
Allows peer verification to be bypassed.
Usage
add_filter( 'gform_paypalpaymentspro_verifypeer', 'your_function_name', 10, 1 );

Parameters

$is_enabled bool
Indicates if the CURLOPT_SSL_VERIFYPEER setting is enabled, which allows peer verification to be bypassed. True enables peer verification, false disables.

Examples
add_filter( 'gform_paypalpaymentspro_verifypeer', 'disable_verification', 10, 1 );
function disable_verification( $is_enabled ){
return false;
}

This code should be placed in the functions.php file of your active theme.
Since
This filter was added in Gravity Forms PayPal Payments Pro v 2.2.
Source Code
This filter is located in GFPayPalPaymentsPro::post_to_payflow() in class-gf-paypalpaymentspro.php.

发表回复

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