woocommerce_get_price_suffix

FILTER woocommerce\includes\abstracts\abstract-wc-product.php (ligne 2255) github
Get the suffix to display after prices > 0.

Paramètres

Entrée :
$html, $this, $price, $qty
Sortie :
@param  string  $price to calculate, left blank to just use get_price().
@param  integer $qty   passed on to get_price_including_tax() or get_price_excluding_tax().
@return string

Utilisation

// Modifier la valeur avec le filtre 'woocommerce_get_price_suffix'
add_filter('woocommerce_get_price_suffix', 'ma_fonction_filtre', 10, 1);

function ma_fonction_filtre($html) {
    // Modifier la valeur
    return $html;
}

Actualités

Chargement des actualités...