raw_woocommerce_price filter-hook . WC 1.0
Filter raw price.
Usage
add_filter( 'raw_woocommerce_price', 'filter_function_name_1801', 10, 2 ); function filter_function_name_1801( $raw_price, $original_price ){ // filter... return $raw_price; }
- $raw_price(float)
- Raw price.
- $original_price(float|string)
- Original price as float, or empty string. Since 5.0.0.
Where the hook is called
woocommerce/includes/wc-formatting-functions.php 591
$price = apply_filters( 'raw_woocommerce_price', $negative ? $price * -1 : $price, $original_price );