WC_Product_Data_Store_Interface::is_existing_sku()
Check if product sku is found for any other product IDs.
Method of the class: WC_Product_Data_Store_Interface{}
No Hooks.
Return
true|false
.
Usage
$WC_Product_Data_Store_Interface = new WC_Product_Data_Store_Interface(); $WC_Product_Data_Store_Interface->is_existing_sku( $product_id, $sku );
- $product_id(int) (required)
- Product ID.
- $sku(string) (required)
- SKU.
WC_Product_Data_Store_Interface::is_existing_sku() WC Product Data Store Interface::is existing sku code WC 8.7.0
public function is_existing_sku( $product_id, $sku );