object_trashable
object_trashable
Appears in: woocommerce.10.3.4
Hook Type: filter
Displaying hooks found in version: woocommerce.10.3.4apply_filters('object_trashable') is found 1 times:
- /src/RestApi/Routes/V4/Orders/Controller.php line 392
* @param boolean $supports_trash Whether the object type support trashing. * @param WC_Order $order The object being considered for trashing support. * @since 10.2.0 */ $supports_trash = apply_filters( $this->get_hook_prefix() . 'object_trashable', EMPTY_TRASH_DAYS > 0, $order ); if ( ! $supports_trash ) { return $this->get_route_error_by_code( self::TRASH_NOT_SUPPORTED ); } if ( 'trash' === $order->get_status() ) {