gform_paypal_sslverify

Description

The “gform_paypal_sslverify” filter in the PayPal Standard Add-On allows the sslverify setting to be modified before sending requests to PayPal.

Usage

add_filter( 'gform_paypal_sslverify', 'your_function_name' );

Parameters

  • $sslverify bool

    Whether to verify SSL for the request.

Example

Turn off SSL verification.

The following allows the request to be completed without SSL verification.

add_filter( 'gform_paypal_sslverify', '__return_false' );

Placement

This code should be placed in the functions.php file of your active theme.

Since

This filter was added in version 2.5.2.

Source Code

$sslverify = apply_filters( 'gform_paypal_sslverify', $sslverify );

This filter is located in GFPayPal::verify_paypal_ipn() in class-gf-paypal.php.