Title: Send custom order meta
Last modified: April 8, 2026

---

# Send custom order meta

 *  [calebgittins](https://wordpress.org/support/users/calebgittins/)
 * (@calebgittins)
 * [1 month ago](https://wordpress.org/support/topic/send-custom-order-meta/)
 * Are there any filters available to send custom order meta to the “extra” item
   in the payload?
 * We would like to send custom meta eg ‘_store_location’ so we can use this for
   filtering and exclusions within Klaviyo

Viewing 1 replies (of 1 total)

 *  Plugin Support [brianklaviyo](https://wordpress.org/support/users/brianklaviyo/)
 * (@brianklaviyo)
 * [1 month ago](https://wordpress.org/support/topic/send-custom-order-meta/#post-18875526)
 * Hey Caleb,
   Unfortunately we do not have any filters or way to adjust the order
   payloads at this time. For any server-side events we normalize the data and these
   inputs take fixed key:values based on what we’re expecting to ingest on our end.
   It is however possible from a client-side event perspective like with started
   checkout or added to cart if there’s a potential workaround there. For example:
 * These filters are available in the public WooCommerce–Klaviyo plugin and control
   what ends up under **`extra` / `$extra`** in the payload:
    1. **Per line item in `extra.Items` (Started Checkout)**
    2.  - Function `wck_build_cart_data()` builds the Started Checkout payload and 
          pushes each cart item into:
          `$event_data['$extra']['Items'][] = ...`[](https://github.com/klaviyo/woocommerce-klaviyo/blob/master/includes/wck-cart-rebuild.php)
        - Before each item is added, the plugin runs the **`kl_checkout_item`** filter:`
          $event_data['$extra']['Items'][] = apply_filters( 'kl_checkout_item', $item,
          $product, $values );`php[](https://github.com/klaviyo/woocommerce-klaviyo/blob/master/includes/wck-cart-rebuild.php)
        - You can use this filter to append custom fields to each line item, e.g. `
          StoreLocation`, which will then appear at:
          `Started Checkout → extra.Items[].
          StoreLocation`.
    3. **Whole Started Checkout payload (including `$extra`)**
    4.  - After `wck_build_cart_data()` returns, **`wck_started_checkout_tracking()`**
          runs **`kl_started_checkout`** on the full `$event_data` array: [](https://github.com/klaviyo/woocommerce-klaviyo/blob/master/includes/wck-cart-functions.php)`
          $event_data = apply_filters( 'kl_started_checkout', $event_data, $cart );`
          php
        - You can add cart-level data into `$event_data['$extra']`, e.g.:`$event_data['
          $extra']['StoreLocation'] = 'Boston';`php
    5. **Added to Cart payload (`extra` block)**
    6.  - `kl_build_add_to_cart_data()` builds the Added to Cart payload and includes:`'
          extra' => $wck_cart['$extra'],`php[](https://github.com/klaviyo/woocommerce-klaviyo/blob/master/includes/wck-added-to-cart.php)
        - Before sending, the plugin runs the **`kl_added_to_cart`** filter: [](https://github.com/klaviyo/woocommerce-klaviyo/blob/master/includes/wck-added-to-cart.php)`
          $added_to_cart = apply_filters( 'kl_added_to_cart', $added_to_cart, $added_product,
          $quantity, $wck_cart );`php
        -  You could add something like:`$added_to_cart['extra']['StoreLocation'] ='
          Boston';`php
    7. That will surface under `Added to Cart → extra.StoreLocation` in Klaviyo.
 * The other alternative would be to run a custom event for Order metrics so you
   would have full control over the data being sent but that also requires the means
   and infrastructure to do so (and obviously not something exclusive to the integration/
   plugin). I’d be happy to put in a feature request on your behalf for the custom
   meta data on Order events being potentially customizable or at least to include
   a an object that allows for some flexibility for customizations in the future.

Viewing 1 replies (of 1 total)

You must be [logged in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fsend-custom-order-meta%2F%3Foutput_format%3Dmd&locale=en_US)
to reply to this topic.

 * ![](https://ps.w.org/klaviyo/assets/icon-256x256.png?rev=2877261)
 * [Klaviyo](https://wordpress.org/plugins/klaviyo/)
 * [Support Threads](https://wordpress.org/support/plugin/klaviyo/)
 * [Active Topics](https://wordpress.org/support/plugin/klaviyo/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/klaviyo/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/klaviyo/reviews/)

## Tags

 * [custom](https://wordpress.org/support/topic-tag/custom/)
 * [order](https://wordpress.org/support/topic-tag/order/)

 * 1 reply
 * 2 participants
 * Last reply from: [brianklaviyo](https://wordpress.org/support/users/brianklaviyo/)
 * Last activity: [1 month ago](https://wordpress.org/support/topic/send-custom-order-meta/#post-18875526)
 * Status: not resolved