woocommerce_email_order_item_quantity, $item->get_quantity(

woocommerce_email_order_item_quantity, $item->get_quantity(

Appears in:
Hook Type: filter

See hook in core

Displaying hooks found in version: woocommerce.11.0.0

apply_filters('woocommerce_email_order_item_quantity, $item->get_quantity(') is found 3 times:

  • /includes/class-wc-structured-data.php line 668
    					'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/plain/email-order-items.php line 55
    			 * @since 2.4.0
    			 * @param int           $quantity Item quantity.
    			 * @param WC_Order_Item $item     Item object.
    			 */
    			$quantity = apply_filters( 'woocommerce_email_order_item_quantity', $item->get_quantity(), $item );
    			if ( '' !== $quantity ) {
    				$product_name .= ' × ' . $quantity;
    			}
    			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";
    
  • /templates/emails/plain/email-order-items.php line 87
    			 * @since 2.4.0
    			 * @param int           $quantity Item quantity.
    			 * @param WC_Order_Item $item     Item object.
    			 */
    			$quantity = apply_filters( 'woocommerce_email_order_item_quantity', $item->get_quantity(), $item );
    			if ( '' !== $quantity ) {
    				echo ' × ' . $quantity;
    			}
    			echo ' = ' . $order->get_formatted_line_subtotal( $item ) . "\n";
    			// phpcs:enable WordPress.Security.EscapeOutput.OutputNotEscaped
    		}