Description
Allows the syncing of subscription data between your Square account and your website data.
Usage
add_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.
add_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.