DescriptionUsageParametersExamplesSinceSource Code
Description
Allows host verification to be bypassed.
Usage
1add_filter( 'gform_paypalpaymentspro_verifyhost', 'your_function_name', 10, 1 );
Parameters
$is_enabled bool
Indicates if the CURLOPT_SSL_VERIFYHOST setting is enabled, which allows host verification to be bypassed. True enables host verification, false disables.
Examples
1234add_filter( 'gform_paypalpaymentspro_verifyhost', '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.