$post->ID,
'approve' => 'approve',
'type' => 'order_note'
);
remove_filter( 'comments_clauses', array( 'WC_Comments', 'exclude_order_comments' ), 10, 1 );
$notes = get_comments( $args );
add_filter( 'comments_clauses', array( 'WC_Comments', 'exclude_order_comments' ), 10, 1 );
echo '
';
if ( $notes ) {
foreach( $notes as $note ) {
$note_classes = get_comment_meta( $note->comment_ID, 'is_customer_note', true ) ? array( 'customer-note', 'note' ) : array( 'note' );
?>
-
comment_content ) ) ); ?>
comment_date_gmt ), current_time( 'timestamp', 1 ) ) ); ?>
comment_author !== __( 'WooCommerce', 'woocommerce' ) ) printf( ' ' . __( 'by %s', 'woocommerce' ), $note->comment_author ); ?>
' . __( 'There are no notes for this order yet.', 'woocommerce' ) . '';
}
echo '
';
?>
' src="plugin_url(); ?>/assets/images/help.png" height="16" width="16" />