Remove all plugins / install base theme

This commit is contained in:
Tony Volpe
2024-06-18 16:14:48 -04:00
parent ecc33d62f0
commit 95cb30b884
7455 changed files with 0 additions and 1722920 deletions

View File

@@ -1,19 +0,0 @@
( function () {
'use strict';
// Set order attribution on consent change.
document.addEventListener( 'wp_listen_for_consent_change', ( e ) => {
const changedConsentCategory = e.detail;
for ( const key in changedConsentCategory ) {
if ( changedConsentCategory.hasOwnProperty( key ) && key === window.wc_order_attribution.params.consentCategory ) {
window.wc_order_attribution.setOrderTracking( changedConsentCategory[ key ] === 'allow' );
}
}
} );
// Set order attribution as soon as consent type is defined.
document.addEventListener( 'wp_consent_type_defined', () => {
window.wc_order_attribution.setOrderTracking( wp_has_consent( window.wc_order_attribution.params.consentCategory ) );
} );
}() );