Gives plugins an opportunity to verify SKU uniqueness themselves.
null, $product_id, $sku
Sortie :
@param bool|null $has_unique_sku Set to a boolean value to short-circuit the default SKU check. @param int $product_id The ID of the current product. @param string $sku The SKU to check for uniqueness.
// Modifier la valeur avec le filtre 'wc_product_pre_has_unique_sku'
add_filter('wc_product_pre_has_unique_sku', 'ma_fonction_filtre', 10, 1);
function ma_fonction_filtre(null) {
// Modifier la valeur
return null;
}
Chargement des actualités...