Skip to content

Configuration

Klaviyo API keys

The plugin requires a Klaviyo Private API key (v3). Configure it via the WooCommerce settings screen or define it as a constant in wp-config.php:

define( 'KLAVIYO_PRIVATE_KEY', 'pk_xxxxxxxxxxxx' );

The plugin supports subscribing profiles to Klaviyo lists with explicit email/SMS consent. Configure the target List ID through the plugin settings or:

define( 'KLAVIYO_LIST_ID', 'XXXXXX' );

Action Scheduler

Events are queued asynchronously via Action Scheduler (bundled with WooCommerce). No additional configuration is required. The hook group is klaviyo.

To inspect the queue: WooCommerce → Status → Scheduled Actions, filter by group klaviyo.

WP-CLI

The plugin registers WP-CLI commands under wp klaviyo:

wp klaviyo update-consent   # Bulk-update consent status for existing profiles