woocommerce_cart_product_price filter-hookWC 1.0

Usage

add_filter( 'woocommerce_cart_product_price', 'wp_kama_woocommerce_cart_product_price_filter', 10, 2 );

/**
 * Function for `woocommerce_cart_product_price` filter-hook.
 * 
 * @param  $wc_price 
 * @param  $product  
 *
 * @return 
 */
function wp_kama_woocommerce_cart_product_price_filter( $wc_price, $product ){

	// filter...
	return $wc_price;
}
$wc_price
-
$product
-

Where the hook is called

WC_Cart::get_product_price()
woocommerce_cart_product_price
woocommerce/includes/class-wc-cart.php 2027
return apply_filters( 'woocommerce_cart_product_price', wc_price( $product_price ), $product );

Where the hook is used in WooCommerce

Usage not found.