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:
parent
98ad7b405d
commit
849a3598c9
|
@ -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">
|
||||
|
|
Loading…
Reference in New Issue