diff --git a/includes/wc-cart-functions.php b/includes/wc-cart-functions.php index 0da8c1281ba..fb07c970c14 100644 --- a/includes/wc-cart-functions.php +++ b/includes/wc-cart-functions.php @@ -107,7 +107,7 @@ function wc_add_to_cart_message( $products, $show_qty = false, $return = false ) foreach ( $products as $product_id => $qty ) { /* translators: %s: product name */ - $titles[] = ( $qty > 1 ? absint( $qty ) . ' × ' : '' ) . sprintf( _x( '“%s”', 'Item name in quotes', 'woocommerce' ), strip_tags( get_the_title( $product_id ) ) ); + $titles[] = ( $qty > 1 ? absint( $qty ) . ' × ' : '' ) . apply_filters( 'woocommerce_add_to_cart_item_name_in_quotes', sprintf( _x( '“%s”', 'Item name in quotes', 'woocommerce' ), strip_tags( get_the_title( $product_id ) ) ), $product_id ); $count += $qty; }