woocommerce_order_note_class

woocommerce_order_note_class

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: filter

See hook in core

Displaying hooks found in version: woocommerce.8.7.0

apply_filters('woocommerce_order_note_class') is found 2 times:

  • /includes/admin/meta-boxes/views/html-order-notes.php line 18
    		foreach ( $notes as $note ) {
    			$css_class   = array( 'note' );
    			$css_class[] = $note->customer_note ? 'customer-note' : '';
    			$css_class[] = 'system' === $note->added_by ? 'system-note' : '';
    			$css_class   = apply_filters( 'woocommerce_order_note_class', array_filter( $css_class ), $note );
    			?>
    			<li rel="<?php echo absint( $note->id ); ?>" class="<?php echo esc_attr( implode( ' ', $css_class ) ); ?>">
    				<div class="note_content">
    					<?php echo wpautop( wptexturize( wp_kses_post( $note->content ) ) ); // @codingStandardsIgnoreLine ?>
    				</div>
    				<p class="meta">
    
  • /includes/class-wc-ajax.php line 1565
    			$note       = wc_get_order_note( $comment_id );
    
    			$note_classes   = array( 'note' );
    			$note_classes[] = $is_customer_note ? 'customer-note' : '';
    			$note_classes   = apply_filters( 'woocommerce_order_note_class', array_filter( $note_classes ), $note );
    			?>
    			<li rel="<?php echo absint( $note->id ); ?>" class="<?php echo esc_attr( implode( ' ', $note_classes ) ); ?>">
    				<div class="note_content">
    					<?php echo wp_kses_post( wpautop( wptexturize( make_clickable( $note->content ) ) ) ); ?>
    				</div>
    				<p class="meta">