Filter to customize how the Cost of Goods Sold value for a product gets rendered to HTML.
$html, $value, $this
Sortie :
@param string $html The rendered HTML. @param float $value The cost value that is being rendered. @param WC_Product $product The product for which the cost is rendered.
// Modifier la valeur avec le filtre 'woocommerce_product_get_cogs_html'
add_filter('woocommerce_product_get_cogs_html', 'ma_fonction_filtre', 10, 1);
function ma_fonction_filtre($html) {
// Modifier la valeur
return $html;
}
Chargement des actualités...