Reinstate woocommerce_email_order_items_args hook

This commit is contained in:
Brent Shepherd 2017-02-02 12:12:30 -08:00
parent 75bcbbf959
commit fe7e280ea0
1 changed files with 2 additions and 2 deletions

View File

@ -2367,7 +2367,7 @@ if ( ! function_exists( 'wc_get_email_order_items' ) ) {
$args = wp_parse_args( $args, $defaults );
$template = $args['plain_text'] ? 'emails/plain/email-order-items.php' : 'emails/email-order-items.php';
wc_get_template( $template, array(
wc_get_template( $template, apply_filters( 'woocommerce_email_order_items_args', array(
'order' => $order,
'items' => $order->get_items(),
'show_download_links' => $order->is_download_permitted() && ! $args['sent_to_admin'],
@ -2377,7 +2377,7 @@ if ( ! function_exists( 'wc_get_email_order_items' ) ) {
'image_size' => $args['image_size'],
'plain_text' => $args['plain_text'],
'sent_to_admin' => $args['sent_to_admin'],
) );
) ) );
return apply_filters( 'woocommerce_email_order_items_table', ob_get_clean(), $order );
}