add a filter to the array of the html classes for an order note

allow plugins to hook into the display of order notes to add classes.
This commit is contained in:
Kevin Hagerty 2015-09-08 20:11:04 -04:00
parent 98ad7b405d
commit 849a3598c9
1 changed files with 2 additions and 1 deletions

View File

@ -44,7 +44,8 @@ class WC_Meta_Box_Order_Notes {
foreach( $notes as $note ) {
$note_classes = get_comment_meta( $note->comment_ID, 'is_customer_note', true ) ? array( 'customer-note', 'note' ) : array( 'note' );
$note_classes = apply_filters('woocommerce_order_notes_note_classes',$note_classes,$note);
?>
<li rel="<?php echo absint( $note->comment_ID ) ; ?>" class="<?php echo implode( ' ', $note_classes ); ?>">
<div class="note_content">