Add "get_name"

Per new Woo template files.

Also add's "@codingStandardsIgnoreLine"
This commit is contained in:
Unknown 2018-03-22 14:07:29 -06:00 committed by zachary
parent cceb400c5f
commit b02fe37749
1 changed files with 1 additions and 1 deletions

View File

@ -42,7 +42,7 @@ if ( ! defined( 'ABSPATH' ) ) {
<tr class="<?php echo esc_attr( apply_filters( 'woocommerce_order_item_class', 'order_item', $item, $order ) ); ?>">
<td class="product-name">
<?php
echo apply_filters( 'woocommerce_order_item_name', esc_html( $item['name'] ), $item, false );
echo apply_filters( 'woocommerce_order_item_name', esc_html( $item->get_name() ), $item, false ); // @codingStandardsIgnoreLine
do_action( 'woocommerce_order_item_meta_start', $item_id, $item, $order );
$order->display_item_meta( $item );