woocommerce_get_price_html_from_text

FILTER woocommerce\includes\wc-template-functions.php (ligne 4009) github
Returns a 'from' prefix if you want to show where prices start at.

Paramètres

Entrée :
'' . _x( 'From:', 'min_price', 'woocommerce'
Sortie :
@return string

Utilisation

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

function ma_fonction_filtre('' . _x( 'From:') {
    // Modifier la valeur
    return '' . _x( 'From:';
}

Actualités

Chargement des actualités...