woocommerce_format_sale_price

woocommerce_format_sale_price

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: filter

See hook in core

Displaying hooks found in version: woocommerce.9.5.1

apply_filters('woocommerce_format_sale_price') is found 1 times:

  • /includes/wc-formatting-functions.php line 1322
    	// translators: %s is a product's current (sale) price.
    	$price .= esc_html( sprintf( __( 'Current price is: %s.', 'woocommerce' ), wp_strip_all_tags( $formatted_sale_price ) ) );
    	$price .= '</span>';
    
    	return apply_filters( 'woocommerce_format_sale_price', $price, $regular_price, $sale_price );
    }
    
    /**
     * Format a price range for display.
     *
     * @param  string $from Price from.