WP Manifestindependent plugin directory
manifest / privacy / wordpress

Katla Cookie Consent

The Wordpress & Woocommerce plugin for Katla

by Katla · github.com/katla-app/wordpress · website

0stars
0forks

Install

No release zip yet. The repository archive installs, but the folder name will carry the branch suffix and updates will not flow:

wp plugin install https://github.com/katla-app/wordpress/archive/refs/heads/main.zip

Readme

Katla Cookie Consent for WordPress

GDPR, CCPA/CPRA and DMA cookie compliance for WordPress and WooCommerce, backed by Katla. The plugin loads Katla's consent script, blocks non-consented scripts and embeds server-side, and renders the cookie and privacy policies Katla generates.

Docs for the underlying platform: https://docs.katla.app

Requirements

WordPress 6.3+
PHP 7.4+
WooCommerce 7.0+ (optional)
Katla A verified site with at least one completed scan

Install

Copy the plugin into wp-content/plugins/katla-consent, activate it, then set your Site ID:

wp plugin activate katla-consent
wp katla site-id 00000000-0000-0000-0000-000000000000
wp katla verify

Or paste it into Settings → Katla Consent.

Modes

Hosted widget (default)

Loads https://dist.katla.app/{siteId}.js. Katla renders the banner and the preferences dialog, styled from your Katla dashboard.

Advanced / headless

Loads the same script with ?headless=true — the cookie guard and window.KatlaConsent only, no UI. Then either:

  • Built-in banner — this plugin renders a banner and preferences dialog from plain DOM, translated through WordPress and styled with CSS custom properties.
  • Bring your own — the plugin renders nothing. Build your own UI against window.KatlaConsent and the katla:consent event.

Blocks and shortcodes

Shortcode Block What it renders
[katla_policy] Katla Policy Full cookie + privacy policy
[katla_policy format="cookie"] Katla Policy Cookie policy only
[katla_policy format="table"] Katla Policy Cookie tables only
[katla_cookie_table category="analytics"] Katla Cookie Table Scanned cookies, grouped by category
[katla_cookie_settings] Katla Cookie Settings Button/link that reopens the preferences
[katla_block category="marketing"]…[/katla_block] Holds back the enclosed scripts and iframes
[katla_consent category="analytics"]…[/katla_consent] Shows the enclosed content only while allowed

[katla_policy] renders on the server by default, so the policy is part of the page HTML and indexable. render="client" switches to Katla's hosted policy.js instead.

Blocking scripts

Katla's cookie guard stops cookies from being written. It does not stop a tracker from loading. Map script handles (or URL fragments) to categories on the Blocking tab, or from code:

add_action( 'wp_enqueue_scripts', function () {
    katla_block_script( 'google-analytics', 'analytics' );
    katla_block_script( 'facebook-pixel', 'marketing' );
}, 20 );

A blocked handle is rewritten to `

Read the full README on GitHub →