WC_Product::delete( bool $force_delete = false )

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


Description Description


Parameters Parameters

$force_delete

(Optional) Should the product be deleted permanently.

Default value: false


Top ↑

Return Return

(bool) result


Top ↑

Source Source

File: includes/abstracts/abstract-wc-product.php




Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.