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.

發表回覆

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