woocommerce_product_empty_cogs_html

FILTER woocommerce\includes\abstracts\abstract-wc-product.php (ligne 1972) github
Filter to customize how an empty Cost of Goods Sold value for a product gets rendered to HTML.

Paramètres

Entrée :
'', $this
Sortie :
@param string $html The rendered HTML.
@param WC_Product $product The product for which the cost is rendered.

Utilisation

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

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

Actualités

Chargement des actualités...