Merged in feature/280-dev-dev01 (pull request #21)
auto-patch 280-dev-dev01-2024-01-19T16_41_58 * auto-patch 280-dev-dev01-2024-01-19T16_41_58
This commit is contained in:
1
wp/wp-content/plugins/woocommerce/assets/js/frontend/wp-consent-api-integration.min.js
vendored
Normal file
1
wp/wp-content/plugins/woocommerce/assets/js/frontend/wp-consent-api-integration.min.js
vendored
Normal file
@@ -0,0 +1 @@
|
||||
!function(n){"use strict";document.addEventListener("wp_listen_for_consent_change",n=>{const t=n.detail;for(const n in t)t.hasOwnProperty(n)&&"marketing"===n&&"allow"===t[n]&&window.wc_order_attribution.setAllowTrackingConsent(!0)}),n(document).on("wp_consent_type_defined",()=>{wp_has_consent("marketing")&&window.wc_order_attribution.setAllowTrackingConsent(!0)})}(jQuery);
|
||||
Reference in New Issue
Block a user