From c1d06b473df2e6cc1a27c0b077d57257d87decd9 Mon Sep 17 00:00:00 2001 From: James Allan Date: Thu, 24 May 2018 14:08:27 +1000 Subject: [PATCH] Add an action hook after printing the cart item name --- templates/cart/cart.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/templates/cart/cart.php b/templates/cart/cart.php index 30f14cc622f..1d5cb22b6f2 100644 --- a/templates/cart/cart.php +++ b/templates/cart/cart.php @@ -81,6 +81,8 @@ do_action( 'woocommerce_before_cart' ); ?> echo wp_kses_post( apply_filters( 'woocommerce_cart_item_name', sprintf( '%s', esc_url( $product_permalink ), $_product->get_name() ), $cart_item, $cart_item_key ) ); } + do_action( 'woocommerce_after_cart_item_name', $cart_item, $cart_item_key ); + // Meta data. echo wc_get_formatted_cart_item_data( $cart_item ); // PHPCS: XSS ok.