woocommerce_order_get_subtotal

FILTER woocommerce\includes\abstracts\abstract-wc-order.php (ligne 519) github
Gets order subtotal. Order subtotal is the price of all items excluding taxes, fees, shipping cost, and coupon discounts. If sale price is set on an item, the subtotal will include this sale discount. E.g. a product with a regular price of $100 bought at a 50% discount will represent $50 of the subtotal for the order.

Paramètres

Entrée :
(float
Sortie :
@return float

Utilisation

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

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

Actualités

Chargement des actualités...