apply_filters( 'rest_product_review_trashable', boolean $supports_trash, WP_Post $product_review )

Filter whether a product review is trashable.


Description Description

Return false to disable trash support for the product review.


Parameters Parameters

$supports_trash

Whether the object supports trashing.

$product_review

The object being considered for trashing support.


Top ↑

Source Source

File: includes/rest-api/Controllers/Version1/class-wc-rest-product-reviews-v1-controller.php



Top ↑

User Contributed Notes User Contributed Notes

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