wc_product_has_unique_sku

wc_product_has_unique_sku

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: filter

See hook in core

Displaying hooks found in version: woocommerce.9.5.1

apply_filters('wc_product_has_unique_sku') is found 1 times:

  • /includes/wc-product-functions.php line 676
     
    	$data_store = WC_Data_Store::load( 'product' );
    	$sku_found  = $data_store->is_existing_sku( $product_id, $sku );
    
    	if ( apply_filters( 'wc_product_has_unique_sku', $sku_found, $product_id, $sku ) ) {
    		return false;
    	}
    
    	return true;
    }