WordPress как на ладони
Недорогой хостинг для сайтов на WordPress: wordpress.jino.ru
фильтр не описан

woocommerce_rest_(post_type)_trashable хук-фильтр . WC 1.0

Filter whether an item is trashable.

Return false to disable trash support for the item.

Использование

add_filter( 'woocommerce_rest_(post_type)_trashable', 'filter_function_name_4740', 10, 2 );
function filter_function_name_4740( $supports_trash, $post ){
	// filter...

	return $supports_trash;
}
$supports_trash(true/false)
Whether the item type support trashing.
$post(WP_Post)
The Post object being considered for trashing support.

Где вызывается хук

WC_REST_Posts_Controller::delete_item()
woocommerce_rest_(post_type)_trashable
WC_REST_Products_V1_Controller::delete_item()
woocommerce_rest_(post_type)_trashable
woocommerce/includes/rest-api/Controllers/Version3/class-wc-rest-posts-controller.php 434
$supports_trash = apply_filters( "woocommerce_rest_{$this->post_type}_trashable", $supports_trash, $post );
woocommerce/includes/rest-api/Controllers/Version1/class-wc-rest-products-v1-controller.php 1652
$supports_trash = apply_filters( "woocommerce_rest_{$this->post_type}_trashable", $supports_trash, $post );

Где используется хук в ядре WooCommerce

includes/rest-api/Controllers/Version1/class-wc-rest-order-refunds-v1-controller.php 50
add_filter( "woocommerce_rest_{$this->post_type}_trashable", '__return_false' );
includes/rest-api/Controllers/Version2/class-wc-rest-order-refunds-v2-controller.php 53
add_filter( "woocommerce_rest_{$this->post_type}_object_trashable", '__return_false' );