woocommerce_order_item_class

woocommerce_order_item_class

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

See hook in core

Displaying hooks found in version: woocommerce.9.3.3

apply_filters('woocommerce_order_item_class') is found 4 times:

  • /src/Blocks/BlockTypes/OrderConfirmation/Totals.php line 130
    	 */
    	protected function render_order_details_table_item( $order, $item_id, $item, $product ) {
    		$is_visible = $product && $product->is_visible();
    		// phpcs:ignore WooCommerce.Commenting.CommentHooks.MissingHookComment
    		$row_class = apply_filters( 'woocommerce_order_item_class', 'woocommerce-table__line-item order_item', $item, $order );
    		// phpcs:ignore WooCommerce.Commenting.CommentHooks.MissingHookComment
    		$product_permalink = apply_filters( 'woocommerce_order_item_permalink', $is_visible ? $product->get_permalink( $item ) : '', $item, $order );
    
    		// phpcs:ignore WooCommerce.Commenting.CommentHooks.MissingHookComment
    		$item_name    = apply_filters(
    			'woocommerce_order_item_name',
    
  • /templates/checkout/form-pay.php line 40
    					if ( ! apply_filters( 'woocommerce_order_item_visible', true, $item ) ) {
    						continue;
    					}
    					?>
    					<tr class="<?php echo esc_attr( apply_filters( 'woocommerce_order_item_class', 'order_item', $item, $order ) ); ?>">
    						<td class="product-name">
    							<?php
    								echo wp_kses_post( apply_filters( 'woocommerce_order_item_name', $item->get_name(), $item, false ) );
    
    								do_action( 'woocommerce_order_item_meta_start', $item_id, $item, $order, false );
    
    
  • /templates/emails/email-order-items.php line 40

    $image = $product->get_image( $image_size );
    }

    ?>

    Share this:

  • /templates/order/order-details-item.php line 26
    if ( ! apply_filters( 'woocommerce_order_item_visible', true, $item ) ) {
    	return;
    }
    ?>
    <tr class="<?php echo esc_attr( apply_filters( 'woocommerce_order_item_class', 'woocommerce-table__line-item order_item', $item, $order ) ); ?>">
    
    	<td class="woocommerce-table__product-name product-name">
    		<?php
    		$is_visible        = $product && $product->is_visible();
    		$product_permalink = apply_filters( 'woocommerce_order_item_permalink', $is_visible ? $product->get_permalink( $item ) : '', $item, $order );