WC_Product_Data_Store_Interface::is_existing_sku()
Check if product sku is found for any other product IDs.
Метод класса: WC_Product_Data_Store_Interface{}
Хуков нет.
Возвращает
true|false
.
Использование
$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) (обязательный)
- Product ID.
- $sku(строка) (обязательный)
- SKU.
Код WC_Product_Data_Store_Interface::is_existing_sku() WC Product Data Store Interface::is existing sku WC 8.7.0
public function is_existing_sku( $product_id, $sku );