woocommerce_cart_item_name хук-фильтрWC 1.0

Использование

add_filter( 'woocommerce_cart_item_name', 'wp_kama_woocommerce_cart_item_name_filter', 10, 3 );

/**
 * Function for `woocommerce_cart_item_name` filter-hook.
 * 
 * @param  $product_name  
 * @param  $cart_item     
 * @param  $cart_item_key 
 *
 * @return 
 */
function wp_kama_woocommerce_cart_item_name_filter( $product_name, $cart_item, $cart_item_key ){

	// filter...
	return $product_name;
}
$product_name
-
$cart_item
-
$cart_item_key
-

Где вызывается хук

В файле: /templates/checkout/review-order.php
woocommerce_cart_item_name
woocommerce/templates/checkout/review-order.php 38
<?php echo wp_kses_post( apply_filters( 'woocommerce_cart_item_name', $_product->get_name(), $cart_item, $cart_item_key ) ) . '&nbsp;'; ?>
woocommerce/templates/cart/mini-cart.php 35
$product_name      = apply_filters( 'woocommerce_cart_item_name', $_product->get_name(), $cart_item, $cart_item_key );
woocommerce/templates/cart/cart.php 80
echo wp_kses_post( apply_filters( 'woocommerce_cart_item_name', $_product->get_name(), $cart_item, $cart_item_key ) . '&nbsp;' );
woocommerce/templates/cart/cart.php 82
echo wp_kses_post( apply_filters( 'woocommerce_cart_item_name', sprintf( '<a href="%s">%s</a>', esc_url( $product_permalink ), $_product->get_name() ), $cart_item, $cart_item_key ) );

Где используется хук в WooCommerce

Использование не найдено.