woocommerce_before_trash_order, $id, $order
woocommerce_before_trash_order, $id, $order
Appears in: woocommerce.11.0.0
Hook Type: action
Displaying hooks found in version: woocommerce.11.0.0do_action('woocommerce_before_trash_order, $id, $order') is found 1 times:
- /includes/data-stores/abstract-wc-order-data-store-cpt.php line 322
* * @param int $order_id ID of the order about to be trashed. * @param WC_Order $order Instance of the order that is about to be trashed. */ do_action( 'woocommerce_before_trash_order', $id, $order ); } wp_trash_post( $id ); $order->set_status( OrderStatus::TRASH ); if ( $do_filters ) {