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.
"–", $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.
// 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 "–";
}
Chargement des actualités...