woocommerce_order_note_class

woocommerce_order_note_class

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

See hook in core

Displaying hooks found in version: woocommerce.9.8.1

apply_filters('woocommerce_order_note_class') is found 2 times:

  • /includes/admin/meta-boxes/views/html-order-notes.php line 18
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    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 1573
    1569
    1570
    1571
    1572
    1573
    1574
    1575
    1576
    1577
    1578
    1579
    $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">