File tree Expand file tree Collapse file tree 1 file changed +7
-1
lines changed
plugins/web-worker-offloading/third-party Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -24,11 +24,17 @@ function plwwo_google_site_kit_configure( $configuration ): array {
24
24
$ configuration = (array ) $ configuration ;
25
25
26
26
$ configuration ['globalFns ' ][] = 'gtag ' ; // Because gtag() is defined in one script and called in another.
27
+ $ configuration ['globalFns ' ][] = 'wp_has_consent ' ; // See <https://github.com/google/site-kit-wp/blob/abbb74ff21f98a8779fbab0eeb9a16279a122bc4/assets/js/consent-mode/consent-mode.js#L61C13-L61C27>.
27
28
$ configuration ['forward ' ][] = 'dataLayer.push ' ; // See <https://partytown.builder.io/forwarding-event>.
28
29
29
- // See <https://github.com/google/site-kit-wp/blob/abbb74ff21f98a8779fbab0eeb9a16279a122bc4/includes/Core/Consent_Mode/Consent_Mode.php#L244-L259>.
30
+ // See <https://github.com/google/site-kit-wp/blob/abbb74ff21f98a8779fbab0eeb9a16279a122bc4/includes/Core/Consent_Mode/Consent_Mode.php#L244-L259>,
31
+ // and <https://github.com/google/site-kit-wp/blob/abbb74ff21f98a8779fbab0eeb9a16279a122bc4/assets/js/consent-mode/consent-mode.js>.
30
32
$ configuration ['mainWindowAccessors ' ][] = '_googlesitekitConsentCategoryMap ' ;
31
33
$ configuration ['mainWindowAccessors ' ][] = '_googlesitekitConsents ' ;
34
+ $ configuration ['mainWindowAccessors ' ][] = 'wp_consent_type ' ;
35
+ $ configuration ['mainWindowAccessors ' ][] = 'wp_fallback_consent_type ' ;
36
+ $ configuration ['mainWindowAccessors ' ][] = 'wp_has_consent ' ;
37
+ $ configuration ['mainWindowAccessors ' ][] = 'waitfor_consent_hook ' ;
32
38
33
39
return $ configuration ;
34
40
}
You can’t perform that action at this time.
0 commit comments