gform_square_data_sync_enabled

gform_square_data_sync_enabled

DescriptionUsageParametersExamplesPlacementSinceSource Code

Description

Allows the syncing of subscription data between your Square account and your website data.

Usage

1add_filter( 'gform_square_data_sync_enabled', 'your_function_name' );

Parameters

$enabled bool
If data sync should occur. Default is enabled.

Examples

Disables data sync for Square.

12345add_filter( 'gform_square_data_sync_enabled', 'disable_square_data_sync' );function disable_square_data_sync( $enabled ) {    $enabled = false; // disable sync    return $enabled;}

Placement

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

Since

This filter was added in Square version 1.4.

Source Code

This filter is located in GF_Square::is_sync_enabled() in gravityformssquare/class-gf-square.php.

发表回复

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