woocommerce_order_item_class filter-hookWC 1.0

Usage

add_filter( 'woocommerce_order_item_class', 'wp_kama_woocommerce_order_item_class_filter', 10, 3 );

/**
 * Function for `woocommerce_order_item_class` filter-hook.
 * 
 * @param  $string 
 * @param  $item   
 * @param  $order  
 *
 * @return 
 */
function wp_kama_woocommerce_order_item_class_filter( $string, $item, $order ){

	// filter...
	return $string;
}
$string
-
$item
-
$order
-

Where the hook is called

In file: /templates/emails/email-order-items.php
woocommerce_order_item_class
woocommerce/templates/emails/email-order-items.php 40
<tr class="<?php echo esc_attr( apply_filters( 'woocommerce_order_item_class', 'order_item', $item, $order ) ); ?>">
woocommerce/templates/order/order-details-item.php 26
<tr class="<?php echo esc_attr( apply_filters( 'woocommerce_order_item_class', 'woocommerce-table__line-item order_item', $item, $order ) ); ?>">
woocommerce/templates/checkout/form-pay.php 40
<tr class="<?php echo esc_attr( apply_filters( 'woocommerce_order_item_class', 'order_item', $item, $order ) ); ?>">

Where the hook is used in WooCommerce

Usage not found.