Remove redundant info from templates
This commit is contained in:
parent
21617f408d
commit
187e1921af
|
@ -43,8 +43,6 @@ foreach ( $items as $item_id => $item ) :
|
|||
// allow other plugins to add additional product information here
|
||||
do_action( 'woocommerce_order_item_meta_start', $item_id, $item, $order, $plain_text );
|
||||
|
||||
wc_display_item_meta( $item );
|
||||
|
||||
if ( $show_download_links ) {
|
||||
wc_display_item_downloads( $item );
|
||||
}
|
||||
|
|
|
@ -31,13 +31,6 @@ foreach ( $items as $item_id => $item ) :
|
|||
echo ' = ' . $order->get_formatted_line_subtotal( $item ) . "\n";
|
||||
// allow other plugins to add additional product information here
|
||||
do_action( 'woocommerce_order_item_meta_start', $item_id, $item, $order, $plain_text );
|
||||
echo strip_tags( wc_display_item_meta( $item, array(
|
||||
'before' => "\n- ",
|
||||
'separator' => "\n- ",
|
||||
'after' => "",
|
||||
'echo' => false,
|
||||
'autop' => false,
|
||||
) ) );
|
||||
if ( $show_download_links ) {
|
||||
echo strip_tags( wc_display_item_downloads( $item, array(
|
||||
'before' => "\n- ",
|
||||
|
|
|
@ -36,7 +36,6 @@ if ( ! apply_filters( 'woocommerce_order_item_visible', true, $item ) ) {
|
|||
|
||||
do_action( 'woocommerce_order_item_meta_start', $item_id, $item, $order );
|
||||
|
||||
wc_display_item_meta( $item );
|
||||
wc_display_item_downloads( $item );
|
||||
|
||||
do_action( 'woocommerce_order_item_meta_end', $item_id, $item, $order );
|
||||
|
|
Loading…
Reference in New Issue