Created
October 24, 2018 03:36
-
-
Save kilbot/785a22da763951ed0630bde65486c35f to your computer and use it in GitHub Desktop.
Force GDPR consent for WooCommerce POS
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 | |
// this goes in your theme functions.php file | |
function force_gdpr_consent_for_woocommerce_pos() | |
{ | |
if (function_exists('is_pos') && is_pos()) { | |
$_POST['wpgdprc'] = true; | |
} | |
} | |
add_action('woocommerce_register_post', 'force_gdpr_consent_for_woocommerce_pos', 5); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment