raw_woocommerce_price filter-hookWC 1.0

Filter raw price.

Usage

add_filter( 'raw_woocommerce_price', 'wp_kama_raw_woocommerce_price_filter', 10, 2 );

/**
 * Function for `raw_woocommerce_price` filter-hook.
 * 
 * @param float        $raw_price      Raw price.
 * @param float|string $original_price Original price as float, or empty string. Since 5.0.0.
 *
 * @return float
 */
function wp_kama_raw_woocommerce_price_filter( $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

wc_price()
raw_woocommerce_price
woocommerce/includes/wc-formatting-functions.php 595
$price = apply_filters( 'raw_woocommerce_price', $negative ? $price * -1 : $price, $original_price );

Where the hook is used in WooCommerce

Usage not found.