wc_product_has_global_unique_id
wc_product_has_global_unique_id
Appears in: woocommerce.9.2.2, woocommerce.9.2.3, woocommerce.9.3.1, woocommerce.9.3.3, woocommerce.9.4.2, woocommerce.9.4.3, woocommerce.9.5.1, woocommerce.9.5.2
Hook Type: filter
Displaying hooks found in version: woocommerce.9.5.2apply_filters('wc_product_has_global_unique_id') is found 1 times:
- /includes/wc-product-functions.php line 722718719720721722723724725726727
* @param boolean
$global_unique_id_found
Whether the Unique ID is found.
* @param int
$product_id
The ID of the current product.
* @param string
$sku
The Unique ID to check
for
uniqueness.
*/
if
( apply_filters(
'wc_product_has_global_unique_id'
,
$global_unique_id_found
,
$product_id
,
$global_unique_id
) ) {
return
false;
}
return
true;
}