apply_filters( "woocommerce_rest_{$this->post_type}_object_trashable", boolean $supports_trash , WC_Data $object )
Filter whether an object is trashable.
Description Description
Return false to disable trash support for the object.
Parameters Parameters
- $supports_trash
-
Whether the object type support trashing.
- $object
-
The object being considered for trashing support.
Source Source
File: includes/rest-api/Controllers/Version3/class-wc-rest-crud-controller.php