Merge pull request #5170 from mgmartel/order-comments-caps
Remove comment exclusion in order notes meta box
This commit is contained in:
commit
f09063b1fd
|
@ -27,8 +27,12 @@ class WC_Meta_Box_Order_Notes {
|
|||
'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 '<ul class="order_notes">';
|
||||
|
||||
if ( $notes ) {
|
||||
|
|
Loading…
Reference in New Issue