woocommerce_before_trash_order

woocommerce_before_trash_order

Appears in:
Hook Type: action

See hook in core

Displaying hooks found in version: woocommerce.7.1.0

do_action('woocommerce_before_trash_order') is found 1 times:

  • /src/Internal/DataStores/Orders/OrdersTableDataStore.php line 1738
    			 *
    			 * @param int      $order_id ID of the order about to be deleted.
    			 * @param WC_Order $order    Instance of the order that is about to be deleted.
    			 */
    			do_action( 'woocommerce_before_trash_order', $order_id, $order );
    
    			$this->trash_order( $order );
    
    			do_action( 'woocommerce_trash_order', $order_id ); // phpcs:ignore WooCommerce.Commenting.CommentHooks.MissingHookComment
    		}
    	}