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.
// 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
-
kl_added_to_cart
filter/** * 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 ); -
kl_cart_rebuild
filter/** * Allow developers to customise the payload before the cart is rebuilt. */ apply_filters( 'kl_cart_rebuild', $kl_cart ); -
kl_cart_rebuild_complete
action/** * Allow developers to call a callback on cart rebuild. */ do_action( 'kl_cart_rebuild_complete', $kl_cart ); -
kl_checkout_item
filter/** * Allow developers to customise the payload before it is sent to Klaviyo. */ apply_filters( 'kl_checkout_item', $item, $product, $values ); -
kl_started_checkout
filter/** * 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 ); -
wck_option_{$option}
filter/** * Allows for "setting" Klaviyo option if deprecated. */ apply_filters( "wck_option_{$option}", self::DEPRECATED_SETTINGS[ $option ] ); -
/** * 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() ); -
woocommerce_klaviyo_init
action/** * Klaviyo plugin init hook. */ do_action( 'woocommerce_klaviyo_init' ); -
woocommerce_klaviyo_loaded
action/** * Plugin loaded. */ do_action( 'woocommerce_klaviyo_loaded' ); -
woocommerce_klaviyo_updated
action/** * 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: