WC_Product_Variable_Data_Store_Interface::delete_variations()publicWC 1.0

Delete variations of a product.

Метод класса: WC_Product_Variable_Data_Store_Interface{}

Хуков нет.

Возвращает

null. Ничего (null).

Использование

$WC_Product_Variable_Data_Store_Interface = new WC_Product_Variable_Data_Store_Interface();
$WC_Product_Variable_Data_Store_Interface->delete_variations( $product_id, $force_delete );
$product_id(int) (обязательный)
Product ID.
$force_delete(true|false)
False to trash.
По умолчанию: false

Код WC_Product_Variable_Data_Store_Interface::delete_variations() WC 8.7.0

public function delete_variations( $product_id, $force_delete = false );