Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save clifgriffin/e7b44ab43f4dba459d6abd5b1dfe1a0f to your computer and use it in GitHub Desktop.
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.
<?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