apply_filters( 'woocommerce_rest_product_review_trashable', bool $supports_trash , WP_Comment $review )
Filters whether a review can be trashed.
Description Description
Return false to disable trash support for the post.
Parameters Parameters
- $supports_trash
-
Whether the post type support trashing.
- $review
-
The review object being considered for trashing support.
Source Source
File: includes/rest-api/Controllers/Version3/class-wc-rest-product-reviews-controller.php
Changelog Changelog
Version | Description |
---|---|
3.5.0 | Introduced. |