WordPress at Your Fingertips
function is not described

WC_Product_Variable_Data_Store_Interface::delete_variations() public WC 1.0

Delete variations of a product.

{} It's a method of the class: WC_Product_Variable_Data_Store_Interface{}

No Hooks.

Return

null. Nothing.

Usage

$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) (required)
Product ID.
$force_delete(true|false)
False to trash.
Default: false

Code of WC_Product_Variable_Data_Store_Interface::delete_variations() WC 5.7.1

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