woocommerce_order_item_name filter-hookWC 1.0

phpcs:disable WordPress.Security.EscapeOutput.OutputNotEscaped

Usage

add_filter( 'woocommerce_order_item_name', 'wp_kama_woocommerce_order_item_name_filter', 10, 3 );

/**
 * Function for `woocommerce_order_item_name` filter-hook.
 * 
 * @param  $item_name 
 * @param  $item      
 * @param  $false     
 *
 * @return 
 */
function wp_kama_woocommerce_order_item_name_filter( $item_name, $item, $false ){

	// filter...
	return $item_name;
}
$item_name
-
$item
-
$false
-

Where the hook is called

In file: /templates/emails/plain/email-order-items.php
woocommerce_order_item_name
woocommerce/templates/emails/plain/email-order-items.php 34
echo wp_kses_post( apply_filters( 'woocommerce_order_item_name', $item->get_name(), $item, false ) );
woocommerce/templates/emails/email-order-items.php 50
echo wp_kses_post( apply_filters( 'woocommerce_order_item_name', $item->get_name(), $item, false ) );
woocommerce/templates/order/order-details-item.php 33
echo wp_kses_post( apply_filters( 'woocommerce_order_item_name', $product_permalink ? sprintf( '<a href="%s">%s</a>', $product_permalink, $item->get_name() ) : $item->get_name(), $item, $is_visible ) );
woocommerce/templates/checkout/form-pay.php 43
echo wp_kses_post( apply_filters( 'woocommerce_order_item_name', $item->get_name(), $item, false ) );
woocommerce/includes/class-wc-structured-data.php 480
'name'  => wp_kses_post( apply_filters( 'woocommerce_order_item_name', $item->get_name(), $item, $is_visible ) ),

Where the hook is used in WooCommerce

Usage not found.