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

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

add_filter( 'woocommerce_cart_item_permalink', 'wp_kama_woocommerce_cart_item_permalink_filter', 10, 3 );

/**
 * Function for `woocommerce_cart_item_permalink` filter-hook.
 * 
 * @param  $_product->get_permalink() 
 * @param  $cart_item                 
 * @param  $cart_item_key             
 *
 * @return 
 */
function wp_kama_woocommerce_cart_item_permalink_filter( $_product->get_permalink(), $cart_item, $cart_item_key ){

	// filter...
	return $_product->get_permalink();
}
$_product->get_permalink()
-
$cart_item
-
$cart_item_key
-

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

В файле: /templates/cart/mini-cart.php
woocommerce_cart_item_permalink
woocommerce/templates/cart/mini-cart.php 38
$product_permalink = apply_filters( 'woocommerce_cart_item_permalink', $_product->is_visible() ? $_product->get_permalink( $cart_item ) : '', $cart_item, $cart_item_key );
woocommerce/templates/cart/cart.php 45
$product_permalink = apply_filters( 'woocommerce_cart_item_permalink', $_product->is_visible() ? $_product->get_permalink( $cart_item ) : '', $cart_item, $cart_item_key );

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

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