woocommerce_order_item_no_cogs_html

FILTER woocommerce\includes\class-wc-order-item.php (ligne 574) github
Filter to customize how a non-existing Cost of Goods Sold value for an order item (whose has_cogs method returns false) gets rendered to HTML.

Paramètres

Entrée :
"", $this
Sortie :
@param string $html The rendered HTML.
@param WC_Order_Item $product The order item for which the "there's no cost" indication is rendered.

Utilisation

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

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

Actualités

Chargement des actualités...