Klaviyo icon
Email & Marketing

Klaviyo hooks reference

  • By klaviyo
  • v3.9.0
  • Updated

Klaviyo 3.9.0 has 4 actions and 6 filters, read directly from its source code on Nov 17, 2026. The list updates automatically when a new version is released.

How to use these hooks

Actions let you run your own code at a specific moment. Filters let you change a value before the plugin uses it. Put your code in a child theme's functions.php or a code-snippets plugin, never in the plugin's own files, because updates overwrite them.

functions.phpyour child theme
// Run your own code when Klaviyo fires an action
add_action( 'kl_cart_rebuild_complete', function( $kl_cart ) {
	// Your code runs here.
}, 10, 1 );

// Change a value Klaviyo is about to use
add_filter( 'kl_added_to_cart', function( $added_to_cart, $added_product, $quantity, $wck_cart ) {
	// Change $added_to_cart here.
	return $added_to_cart;
}, 10, 4 );

Parts of a name in {braces} are filled in at runtime (for example a post type or field ID). Choose Example on any hook for a ready-to-edit snippet.

All hooks

  • includes/wck-added-to-cart.php line 106
    /**
     * Allow developers to customise the payload before it is sent to Klaviyo.
     */
    apply_filters( 'kl_added_to_cart', $added_to_cart, $added_product, $quantity, $wck_cart );
  • includes/wck-cart-functions.php line 97
    /**
     * Allow developers to customise the payload before the cart is rebuilt.
     */
    apply_filters( 'kl_cart_rebuild', $kl_cart );
  • includes/wck-cart-functions.php line 119
    /**
     * Allow developers to call a callback on cart rebuild.
     */
    do_action( 'kl_cart_rebuild_complete', $kl_cart );
  • includes/wck-cart-rebuild.php line 201
    /**
     * Allow developers to customise the payload before it is sent to Klaviyo.
     */
    apply_filters( 'kl_checkout_item', $item, $product, $values );
  • includes/wck-cart-functions.php line 183
    /**
     * Adding apply_filter hook to modify the $event_data array which is passed to
     * wck-started-checkout.js
     */
    apply_filters( 'kl_started_checkout', $event_data, $cart );
  • includes/class-wck-options.php line 76
    /**
     * Allows for "setting" Klaviyo option if deprecated.
     */
    apply_filters( "wck_option_{$option}", self::DEPRECATED_SETTINGS[ $option ] );
  • includes/wck-cart-functions.php line 207
    /**
     * Override whether a page is a checkout page for purposes of whether to load
     * the started checkout js.
     */
    apply_filters( 'wck_should_add_started_checkout', is_checkout() );
  • klaviyo.php line 288
    /**
     * Klaviyo plugin init hook.
     */
    do_action( 'woocommerce_klaviyo_init' );
  • klaviyo.php line 195
    /**
     * Plugin loaded.
     */
    do_action( 'woocommerce_klaviyo_loaded' );
  • includes/class-wck-install.php line 57
    /**
     * Fires when Klaviyo plugin is updated.
     */
    do_action( 'woocommerce_klaviyo_updated' );

Generated from Klaviyo's GPL-licensed source code. Hooks inside bundled third-party libraries are not listed.

Can't find the right hook?

We can build the customisation for you. Describe what you need: