woocommerce_get_price_html_from_to

FILTER woocommerce\includes\legacy\abstract-wc-legacy-product.php (ligne 303) github
Functions for getting parts of a price, in html, used by get_price_html.

Paramètres

Entrée :
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

Utilisation

// 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;
}

Actualités

Chargement des actualités...