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