Functions for getting parts of a price, in html, used by get_price_html.
wc_format_sale_price( $from, $to
Sortie :
@param string $from String or float to wrap with 'from' text @param mixed $to String or float to wrap with 'to' text @return string
// Modifier la valeur avec le filtre 'woocommerce_get_price_html_from_to'
add_filter('woocommerce_get_price_html_from_to', 'ma_fonction_filtre', 10, 1);
function ma_fonction_filtre(wc_format_sale_price( $from) {
// Modifier la valeur
return wc_format_sale_price( $from;
}
Chargement des actualités...