apply_filters( "woocommerce_rest_{$this->post_type}_object_trashable", boolean $supports_trash, WC_Data $object )

Filter whether an object is trashable.


Description Description

Return false to disable trash support for the object.


Parameters Parameters

$supports_trash

Whether the object type support trashing.

$object

The object being considered for trashing support.


Top ↑

Source Source

File: includes/rest-api/Controllers/Version3/class-wc-rest-crud-controller.php



Top ↑

User Contributed Notes User Contributed Notes

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