WordPress at Your Fingertips
filter is not described

rest_product_review_trashable filter-hook . WC 1.0

Filter whether a product review is trashable.

Return false to disable trash support for the product review.


add_filter( 'rest_product_review_trashable', 'filter_function_name_2622', 10, 2 );
function filter_function_name_2622( $supports_trash, $product_review ){
	// filter...

	return $supports_trash;
Whether the object supports trashing.
The object being considered for trashing support.

Where the hook is called

woocommerce/includes/rest-api/Controllers/Version1/class-wc-rest-product-reviews-v1-controller.php 377
$supports_trash = apply_filters( 'rest_product_review_trashable', ( EMPTY_TRASH_DAYS > 0 ), $product_review );

Where in WP core the hook is used WooCommerce

Usage not found.