WordPress at a glance
filter is not described

woocommerce_format_sale_price filter-hook . WC 3.0.0

Format a sale price for display.

Usage

add_filter( 'woocommerce_format_sale_price', 'filter_function_name_2214', 10, 2 );
function filter_function_name_2214( $regular_price, $sale_price ){
	// filter...

	return $regular_price;
}
$regular_price(string)
Regular price.
$sale_price
-

Changelog

Since 3.0.0 Introduced.

Where the hook is called

wc_format_sale_price()
woocommerce_format_sale_price
woocommerce/includes/wc-formatting-functions.php 1269
return apply_filters( 'woocommerce_format_sale_price', $price, $regular_price, $sale_price );

Where in WP core the hook is used WooCommerce

Usage not found.