Skip to content

Instantly share code, notes, and snippets.

@corsonr
Created November 22, 2013 09:38
Show Gist options
  • Save corsonr/7597370 to your computer and use it in GitHub Desktop.
Save corsonr/7597370 to your computer and use it in GitHub Desktop.
Add Order Notes To WooCommerce Completed Order Email (add to customer-completed-order.php)
<h2><?php _e( 'Order Notes', 'woocommerce' ); ?></h2>
<?php
$args = array(
'status' => 'approve',
'post_id' => $order->id
);
$comments = get_comments($args);
foreach($comments as $comment) :
echo $comment->comment_content . '<br />';
endforeach;
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment