Created
March 23, 2023 14:07
-
-
Save clifgriffin/e7b44ab43f4dba459d6abd5b1dfe1a0f to your computer and use it in GitHub Desktop.
Prevent terms and conditions checkbox from being locally cached on CheckoutWC checkout page.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
add_filter( 'cfw_field_data_persistence_excludes', function( $excludes ) { | |
$excludes[] = '#terms'; | |
return $excludes; | |
} ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment