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