WordPress как на ладони
Недорогой хостинг для сайтов на WordPress: wordpress.jino.ru
функция не описана

WC_Product::delete() public WC 1.0

Delete the product, set its ID to 0, and return result.

{} Это метод класса: WC_Product{}

Хуков нет.

Возвращает

true/false. result

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

$WC_Product = new WC_Product();
$WC_Product->delete( $force_delete );
$force_delete(true/false)
Should the product be deleted permanently.
По умолчанию: false

Код WC_Product::delete() WC 4.7.1

<?php
public function delete( $force_delete = false ) {
	$deleted = parent::delete( $force_delete );

	if ( $deleted ) {
		$this->maybe_defer_product_sync();
	}

	return $deleted;
}