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.

發表回覆

您的郵箱地址不會被公開。 必填項已用 * 標註