gform_stripe_connect_enabled

gform_stripe_connect_enabled

DescriptionUsageParametersExamplePlacementSinceSource Code

Description
Allows the disabling of Stripe Connect in order to use the legacy Stripe API key connection method.
Note: When the filter is set, users will need to disconnect from Stripe first in order to see the input fields.
Usage
add_filter( 'gform_stripe_connect_enabled', '__return_false' );

Parameters

$stripe_connect_enabled boolean
Set to True by default on new installations. When set to False, the legacy Stripe setting screen will be shown instead of the recommended Stripe Connect settings screen.

Example
add_filter( 'gform_stripe_connect_enabled', '__return_false' );

Placement
This code should be placed in the functions.php file of your active theme.
Since
This filter was added in Stripe version 2.8.
Source Code
This filter is located in gravityformsstripe/class-gf-stripe.php.

发表回复

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