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.5.1

apply_filters('woocommerce_email_order_item_quantity') is found 3 times:

  • /includes/class-wc-structured-data.php line 602
    					'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 82
    				$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" style="text-align:<?php echo esc_attr( $text_align ); ?>; vertical-align:middle; font-family: 'Helvetica Neue', Helvetica, Roboto, Arial, sans-serif;">
    			<?php echo wp_kses_post( $order->get_formatted_line_subtotal( $item ) ); ?>
    		</td>
    	</tr>
    
  • /templates/emails/plain/email-order-items.php line 38
    		echo wp_kses_post( apply_filters( 'woocommerce_order_item_name', $item->get_name(), $item, false ) );
    		if ( $show_sku && $sku ) {
    			echo ' (#' . $sku . ')';
    		}
    		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 );
    		// phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped