woocommerce_email_order_item_quantity

woocommerce_email_order_item_quantity

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

See hook in core

Displaying hooks found in version: woocommerce.9.8.1

apply_filters('woocommerce_email_order_item_quantity') is found 4 times:

  • /includes/class-wc-structured-data.php line 621
    617
    618
    619
    620
    621
    622
    623
    624
    625
    626
    627
        'price'            => $order->get_line_subtotal( $item ),
        'priceCurrency'    => $order->get_currency(),
        'eligibleQuantity' => array(
            '@type' => 'QuantitativeValue',
            'value' => apply_filters( 'woocommerce_email_order_item_quantity', $item->get_quantity(), $item ),
        ),
    ),
    'itemOffered'        => array(
        '@type' => 'Product',
        'name'  => wp_kses_post( apply_filters( 'woocommerce_order_item_name', $item->get_name(), $item, $is_visible ) ),
        'sku'   => $product_exists ? $product->get_sku() : '',
  • /templates/emails/email-order-items.php line 196
    192
    193
    194
    195
    196
    197
    198
    199
    200
    201
    202
                $qty_display = '<del>' . esc_html( $qty ) . '</del> <ins>' . esc_html( $qty - ( $refunded_qty * -1 ) ) . '</ins>';
            } else {
                $qty_display = esc_html( $qty );
            }
            echo wp_kses_post( apply_filters( 'woocommerce_email_order_item_quantity', $qty_display, $item ) );
            ?>
        </td>
        <td class="td font-family text-align-<?php echo esc_attr( $price_text_align ); ?>" style="vertical-align:middle;">
            <?php echo wp_kses_post( $order->get_formatted_line_subtotal( $item ) ); ?>
        </td>
    </tr>
  • /templates/emails/plain/email-order-items.php line 55
    51
    52
    53
    54
    55
    56
    57
    58
    59
    60
    61
    * @since 2.4.0
     * @param int           $quantity Item quantity.
     * @param WC_Order_Item $item     Item object.
     */
    $product_name .= ' × ' . apply_filters( 'woocommerce_email_order_item_quantity', $item->get_quantity(), $item );
    echo wp_kses_post( str_pad( wp_kses_post( $product_name ), 40 ) );
    echo ' ';
    echo esc_html( str_pad( wp_kses( $order->get_formatted_line_subtotal( $item ), array() ), 20, ' ', STR_PAD_LEFT ) ) . "\n";
    if ( $show_sku && $sku ) {
        echo esc_html( '(#' . $sku . ")\n" );
    }
  • /templates/emails/plain/email-order-items.php line 84
    80
    81
    82
    83
    84
    85
    86
    87
    88
    89
    90
         * @since 2.4.0
         * @param int           $quantity Item quantity.
         * @param WC_Order_Item $item     Item object.
         */
        echo ' X ' . apply_filters( 'woocommerce_email_order_item_quantity', $item->get_quantity(), $item );
        echo ' = ' . $order->get_formatted_line_subtotal( $item ) . "\n";
        // phpcs:enable WordPress.Security.EscapeOutput.OutputNotEscaped
    }
     
    // allow other plugins to add additional product information here.
    do_action( 'woocommerce_order_item_meta_start', $item_id, $item, $order, $plain_text );