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

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

add_filter( 'woocommerce_cart_product_subtotal', 'wp_kama_woocommerce_cart_product_subtotal_filter', 10, 4 );

/**
 * Function for `woocommerce_cart_product_subtotal` filter-hook.
 * 
 * @param  $product_subtotal 
 * @param  $product          
 * @param  $quantity         
 * @param  $that             
 *
 * @return 
 */
function wp_kama_woocommerce_cart_product_subtotal_filter( $product_subtotal, $product, $quantity, $that ){

	// filter...
	return $product_subtotal;
}
$product_subtotal
-
$product
-
$quantity
-
$that
-

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

WC_Cart::get_product_subtotal()
woocommerce_cart_product_subtotal
woocommerce/includes/class-wc-cart.php 2036
return apply_filters( 'woocommerce_cart_product_subtotal', $product_subtotal, $product, $quantity, $this );

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

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