woocommerce_order_item_name

woocommerce_order_item_name

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

See hook in core

Displaying hooks found in version: woocommerce.9.9.5

apply_filters('woocommerce_order_item_name') is found 8 times:

  • /includes/admin/meta-boxes/views/html-order-item.php line 29
     * @param string $item_name The order item's name.
     * @param WC_Order_Item $item The order item object.
     * @param bool $is_visible Item's product visibility in the catalog.
     */
    $item_name = apply_filters( 'woocommerce_order_item_name', $item->get_name(), $item, $is_visible );
    
    ?>
    <tr class="item <?php echo esc_attr( $row_class ); ?>" data-order_item_id="<?php echo esc_attr( $item_id ); ?>">
    	<td class="thumb">
    		<?php echo '<div class="wc-order-item-thumbnail">' . wp_kses_post( $thumbnail ) . '</div>'; ?>
    	</td>
    
  • /includes/class-wc-structured-data.php line 626
    					),
    				),
    				'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() : '',
    					'image' => $product_exists ? wp_get_attachment_image_url( $product->get_image_id() ) : '',
    					'url'   => $is_visible ? get_permalink( $product->get_id() ) : get_home_url(),
    				),
    				'seller'             => array(
    					'@type' => 'Organization',
    
  • /templates/checkout/form-pay.php line 43
    					?>
    					<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 );
    
    								wc_display_item_meta( $item );
    
    								do_action( 'woocommerce_order_item_meta_end', $item_id, $item, $order, false );
    
  • /templates/emails/email-order-items.php line 71
    							 * @param string                $item_name The item name HTML.
    							 * @param WC_Order_Item_Product $item      The item being displayed.
    							 * @since 2.1.0
    							 */
    							echo wp_kses_post( apply_filters( 'woocommerce_order_item_name', $item->get_name(), $item, false ) );
    
    							// SKU.
    							if ( $show_sku && $sku ) {
    								echo wp_kses_post( ' (#' . $sku . ')' );
    							}
    
    
  • /templates/emails/email-order-items.php line 154
    				 * @param string                $item_name The item name HTML.
    				 * @param WC_Order_Item_Product $item      The item being displayed.
    				 * @since 2.1.0
    				 */
    				echo wp_kses_post( apply_filters( 'woocommerce_order_item_name', $item->get_name(), $item, false ) );
    
    				// SKU.
    				if ( $show_sku && $sku ) {
    					echo wp_kses_post( ' (#' . $sku . ')' );
    				}
    
    
  • /templates/emails/plain/email-order-items.php line 47
    			 * @param string        $product_name Product name.
    			 * @param WC_Order_Item $item Order item object.
    			 * @param bool          $is_visible Is item visible.
    			 */
    			$product_name = apply_filters( 'woocommerce_order_item_name', $item->get_name(), $item, false );
    			/**
    			 * Email Order Item Quantity hook.
    			 *
    			 * @since 2.4.0
    			 * @param int           $quantity Item quantity.
    			 * @param WC_Order_Item $item     Item object.
    
  • /templates/emails/plain/email-order-items.php line 73
    			 * @param string        $product_name Product name.
    			 * @param WC_Order_Item $item Order item object.
    			 * @param bool          $is_visible Is item visible.
    			 */
    			echo wp_kses_post( apply_filters( 'woocommerce_order_item_name', $item->get_name(), $item, false ) );
    			if ( $show_sku && $sku ) {
    				echo ' (#' . $sku . ')';
    			}
    			/**
    			 * Email Order Item Quantity hook.
    			 *
    
  • /templates/order/order-details-item.php line 33
    		<?php
    		$is_visible        = $product && $product->is_visible();
    		$product_permalink = apply_filters( 'woocommerce_order_item_permalink', $is_visible ? $product->get_permalink( $item ) : '', $item, $order );
    
    		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 ) );
    
    		$qty          = $item->get_quantity();
    		$refunded_qty = $order->get_qty_refunded_for_item( $item_id );
    
    		if ( $refunded_qty ) {
    			$qty_display = '<del>' . esc_html( $qty ) . '</del> <ins>' . esc_html( $qty - ( $refunded_qty * -1 ) ) . '</ins>';