Appears in:
Hook Type: action

See hook in core

Displaying hooks found in version: woocommerce.7.1.0

do_action('woocommerce_before_delete_order') is found 1 times:

  • /src/Internal/DataStores/Orders/OrdersTableDataStore.php line 1722
    			 * @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_delete_order', $order_id, $order );
    			// Delete the associated post, which in turn deletes order items, etc. through {@see WC_Post_Data}.
    			// Once we stop creating posts for orders, we should do the cleanup here instead.
    			wp_delete_post( $order_id );
    			do_action( 'woocommerce_delete_order', $order_id ); // phpcs:ignore WooCommerce.Commenting.CommentHooks.MissingHookComment