# cookiebot/4.7.4/src/view/frontend/scripts/cb_frame/publisher-restrictions-js.php

Cookiebot by Usercentrics – Automatic Cookie Banner for GDPR/CCPA &amp; Google Consent Mode, version 4.7.4. 28 lines.

- Page: https://pluginprobe.com/plugins/cookiebot/4.7.4/code/src/view/frontend/scripts/cb_frame/publisher-restrictions-js.php
- Raw: https://pluginprobe.com/plugins/cookiebot/4.7.4/raw/src/view/frontend/scripts/cb_frame/publisher-restrictions-js.php
- Modified: 2025-01-28T12:24:38+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/cookiebot/4.7.4/code/src/view/frontend/scripts/cb_frame/publisher-restrictions-js.php#L10-L20`.

```php
<?php
/**
 * @var string $allowed_vendors
 * @var string $allowed_google_ac_vendors
 * @var string $allowed_purposes
 * @var string $allowed_special_purposes
 * @var string $allowed_features
 * @var string $allowed_special_features
 * @var string $vendor_restrictions
 */
?>
<script id="CookiebotConfiguration" type="application/json" data-cookieconsent="ignore">
	{
		"Frameworks": {
			"IABTCF2": {
				"AllowedVendors": [<?php echo esc_js( $allowed_vendors ); ?>],
				"AllowedGoogleACVendors": [<?php echo esc_js( $allowed_google_ac_vendors ); ?>],
				"AllowedPurposes": [<?php echo esc_js( $allowed_purposes ); ?>],
				"AllowedSpecialPurposes": [<?php echo esc_js( $allowed_special_purposes ); ?>],
				"AllowedFeatures": [<?php echo esc_js( $allowed_features ); ?>],
				"AllowedSpecialFeatures": [<?php echo esc_js( $allowed_special_features ); ?>],
	<?php //phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped ?>
	"VendorRestrictions": [<?php echo $vendor_restrictions; ?>]
			}
		}
	}
</script>

```
