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