gform_paypal_sslverify

gform_paypal_sslverify

DescriptionUsageParametersExampleTurn off SSL verification.PlacementSinceSource Code

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
1add_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.
1add_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
1$sslverify = apply_filters( 'gform_paypal_sslverify', $sslverify );
This filter is located in GFPayPal::verify_paypal_ipn() in class-gf-paypal.php.

发表回复

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