wc_product_pre_has_global_unique_id
wc_product_pre_has_global_unique_id
Appears in: woocommerce.10.0.4, woocommerce.10.1.2, woocommerce.10.2.2, 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, woocommerce.9.7.0, woocommerce.9.7.1, woocommerce.9.8.1, woocommerce.9.8.5, woocommerce.9.9.5
Hook Type: filter
Displaying hooks found in version: woocommerce.9.9.5apply_filters('wc_product_pre_has_global_unique_id') is found 1 times:
- /includes/wc-product-functions.php line 790
* @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. */ $has_global_unique_id = apply_filters( 'wc_product_pre_has_global_unique_id', null, $product_id, $global_unique_id ); if ( ! is_null( $has_global_unique_id ) ) { return boolval( $has_global_unique_id ); } $data_store = WC_Data_Store::load( 'product' ); if ( $data_store->has_callable( 'is_existing_global_unique_id' ) ) {