Commit 7c66e61d3e3 for woocommerce

commit 7c66e61d3e3fb36112433e7b0c7d4eeecd12b724
Author: Luis Felipe Zaguini <26530524+zaguiini@users.noreply.github.com>
Date:   Mon Nov 30 13:26:41 2026 -0300

    Remove the order stage methods and restore 11.3.1 saving behavior (#71526)

    * Remove the order stage machinery so saving methods match 11.3.1

    WooCommerce 11.4 must save orders, webhooks and stock notifications as
    11.3.1 did. The stage_*() twins, the deferred queue in save(), the
    deferred payment and webhook hooks, and the PHPStan rule that enforced
    them change when hooks fire and what a failed write leaves behind.

    Remove every stage method and its helpers, and restore the 11.3.1 body
    of each saving method. Unrelated 11.4 changes in those files stay.

    The order-create, order-update and order-update-status abilities now
    always take the saving path. They write no extension fields and run no
    validators for now, with the extensible abilities feature on or off.
    ActionableAbility gets is_extensible() so an ability can opt out.

    Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

    * Keep unsaved order lines apart when discounts read an order

    WC_Discounts keyed every order line by its ID, so lines that were not
    saved yet shared the key 0. Recalculating coupons on an unsaved order
    with two such lines then failed with a fatal error. Key a line without
    an ID by its key in the order's item list.

    This fix shipped inside the stage rewrite but does not depend on it,
    so it stays when the stage methods go.

    Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

    * Run order-delete without extension validators and syncs

    The order resource does not support extension fields, validators or
    syncs for now. Every Core ability that writes an order now behaves the
    same, so order-delete opts out through is_extensible() as the other
    order abilities do.

    Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

    * Mark ActionableAbility::is_extensible() as internal

    Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

    * Describe the kept 11.4 fixes in the stage removal changelog entry

    Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

    * Keep the stage removal to deletions where the code allows

    - order-delete keeps its validators and syncs, because it never used a stage method.
    - stage_line_totals() keeps its name.
    - payment_complete(), set_status(), calculate_totals() and failed_delivery() carry the exact 11.3.1 text, without added docblocks.
    - Two order-update tests keep their trunk form.

    Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>

    * Restore the hook docblocks that the lint check requires

    Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>

    * Count a coupon once in apply_coupon() and test that order abilities skip extensions

    - apply_coupon() reads the counted flag before its save, as in trunk, so a status change saved by the same call does not count the coupon a second time.
    - A test checks that order-create, order-update and order-update-status run no order validator and no order sync.

    Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>

    ---------

    Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>

diff --git a/.github/workflows/phpstan.yml b/.github/workflows/phpstan.yml
index 9f2227f4726..00fefa100d1 100644
--- a/.github/workflows/phpstan.yml
+++ b/.github/workflows/phpstan.yml
@@ -33,10 +33,6 @@ jobs:
               working-directory: plugins/woocommerce
               run: XDEBUG_MODE=off composer install --quiet

-            - name: 'Run PHPStan rule tests'
-              working-directory: plugins/woocommerce
-              run: composer test:phpstan-rules
-
             - name: 'Create tmp directory'
               working-directory: plugins/woocommerce
               run: mkdir -p tmp
diff --git a/plugins/woocommerce/changelog/add-order-stage-status b/plugins/woocommerce/changelog/add-order-stage-status
deleted file mode 100644
index 2e3251f06f8..00000000000
--- a/plugins/woocommerce/changelog/add-order-stage-status
+++ /dev/null
@@ -1,4 +0,0 @@
-Significance: minor
-Type: add
-
-Add WC_Order::stage_status() and let order-update-status write extension fields with the extensible abilities feature on.
diff --git a/plugins/woocommerce/changelog/add-staged-write-rule-tests b/plugins/woocommerce/changelog/add-staged-write-rule-tests
deleted file mode 100644
index 51069c1def5..00000000000
--- a/plugins/woocommerce/changelog/add-staged-write-rule-tests
+++ /dev/null
@@ -1,4 +0,0 @@
-Significance: patch
-Type: dev
-Comment: Add PHPUnit tests for the staged write PHPStan rule and run them in CI; no production change.
-
diff --git a/plugins/woocommerce/changelog/add-wc-data-stage-methods b/plugins/woocommerce/changelog/add-wc-data-stage-methods
deleted file mode 100644
index 47006904899..00000000000
--- a/plugins/woocommerce/changelog/add-wc-data-stage-methods
+++ /dev/null
@@ -1,4 +0,0 @@
-Significance: minor
-Type: add
-
-Add stage_*() methods for the WC_Data methods that save inside themselves. A stage_*() method changes the object in memory and does not save, so an extensible ability can make the change and run validators before one save. Direct calls to the existing saving methods keep their saves and hooks. When a class overrides a saving method without its stage_*() method, a direct call to the stage_*() method throws a WC_Data_Exception, and the class keeps working through the saving method.
diff --git a/plugins/woocommerce/changelog/fix-order-status-hooks-failed-save b/plugins/woocommerce/changelog/fix-order-status-hooks-failed-save
deleted file mode 100644
index 0121fa20982..00000000000
--- a/plugins/woocommerce/changelog/fix-order-status-hooks-failed-save
+++ /dev/null
@@ -1,4 +0,0 @@
-Significance: patch
-Type: fix
-
-WC_Order::save() no longer fires the order status change hooks when the order write fails. The next successful save of the same order object fires them once.
diff --git a/plugins/woocommerce/changelog/remove-order-stage-machinery b/plugins/woocommerce/changelog/remove-order-stage-machinery
new file mode 100644
index 00000000000..ec3a6f9a7f2
--- /dev/null
+++ b/plugins/woocommerce/changelog/remove-order-stage-machinery
@@ -0,0 +1,3 @@
+Significance: patch
+Type: dev
+Comment: Remove the unreleased order stage methods; saving keeps 11.3.1 behavior plus the other 11.4 fixes.
diff --git a/plugins/woocommerce/changelog/update-order-edit-status-timing b/plugins/woocommerce/changelog/update-order-edit-status-timing
deleted file mode 100644
index ed9ba049ab9..00000000000
--- a/plugins/woocommerce/changelog/update-order-edit-status-timing
+++ /dev/null
@@ -1,4 +0,0 @@
-Significance: minor
-Type: update
-
-WC_Order::update_status() with a manual change now fires woocommerce_order_edit_status from save(), just before the order is written, as before. A direct set_status() call still fires it right away.
diff --git a/plugins/woocommerce/changelog/wooai-1852-literal-hook-calls b/plugins/woocommerce/changelog/wooai-1852-literal-hook-calls
deleted file mode 100644
index 6bdd9525754..00000000000
--- a/plugins/woocommerce/changelog/wooai-1852-literal-hook-calls
+++ /dev/null
@@ -1,4 +0,0 @@
-Significance: patch
-Type: dev
-Comment: Fire two order hooks through literal calls again so docs and lint find them; no behavior change.
-
diff --git a/plugins/woocommerce/changelog/wooai-1854-webhook-stage-ping b/plugins/woocommerce/changelog/wooai-1854-webhook-stage-ping
deleted file mode 100644
index 689fbeb76df..00000000000
--- a/plugins/woocommerce/changelog/wooai-1854-webhook-stage-ping
+++ /dev/null
@@ -1,4 +0,0 @@
-Significance: patch
-Type: dev
-Comment: Stop an experimental webhook stage method from sending the ping; the saving path is unchanged.
-
diff --git a/plugins/woocommerce/changelog/wooai-70552-stop-hooks-after-failed-save b/plugins/woocommerce/changelog/wooai-70552-stop-hooks-after-failed-save
deleted file mode 100644
index 2fbafb07c1c..00000000000
--- a/plugins/woocommerce/changelog/wooai-70552-stop-hooks-after-failed-save
+++ /dev/null
@@ -1,4 +0,0 @@
-Significance: patch
-Type: fix
-
-Stop reporting an order as paid, or changing its tax lines, when the order fails to save.
diff --git a/plugins/woocommerce/changelog/wooairr-694-defer-pre-payment-complete b/plugins/woocommerce/changelog/wooairr-694-defer-pre-payment-complete
deleted file mode 100644
index 61ff067abae..00000000000
--- a/plugins/woocommerce/changelog/wooairr-694-defer-pre-payment-complete
+++ /dev/null
@@ -1,4 +0,0 @@
-Significance: patch
-Type: dev
-Comment: Fire the payment and webhook hooks of staged changes on save, not on stage; unreleased code only.
-
diff --git a/plugins/woocommerce/composer.json b/plugins/woocommerce/composer.json
index abbaf3416d0..66f036cbb16 100644
--- a/plugins/woocommerce/composer.json
+++ b/plugins/woocommerce/composer.json
@@ -114,9 +114,6 @@
 		},
 		"classmap": [
 			"tests/legacy/unit-tests/rest-api/Helpers"
-		],
-		"exclude-from-classmap": [
-			"tests/Tools/phpstan/data/"
 		]
 	},
 	"scripts": {
@@ -165,9 +162,6 @@
 		],
 		"phpstan:baseline": [
 			"vendor/bin/phpstan analyse --configuration=phpstan.neon --memory-limit=4G --generate-baseline=phpstan-baseline.neon"
-		],
-		"test:phpstan-rules": [
-			"phpunit -c tests/Tools/phpstan/phpunit.xml"
 		]
 	},
 	"extra": {
diff --git a/plugins/woocommerce/includes/abstracts/abstract-wc-data.php b/plugins/woocommerce/includes/abstracts/abstract-wc-data.php
index 6da0fd1f6cc..912530c80fa 100644
--- a/plugins/woocommerce/includes/abstracts/abstract-wc-data.php
+++ b/plugins/woocommerce/includes/abstracts/abstract-wc-data.php
@@ -10,8 +10,6 @@
  * @package     WooCommerce\Classes
  */

-use Automattic\WooCommerce\Internal\Utilities\StagedMethod;
-
 if ( ! defined( 'ABSPATH' ) ) {
 	exit;
 }
@@ -27,15 +25,6 @@ if ( ! defined( 'ABSPATH' ) ) {
  */
 abstract class WC_Data {

-	/**
-	 * Whether a stage_*() method runs for its saving method, so it saves and writes at the same points as the
-	 * saving method always did. write_through() sets it.
-	 *
-	 * @since 11.4.0
-	 * @var bool
-	 */
-	protected $writing_through = false;
-
 	/**
 	 * Clone mode constant: Duplicate mode clears meta IDs (default, for backward compatibility).
 	 *
@@ -161,43 +150,6 @@ abstract class WC_Data {
 		$this->default_data = $this->data;
 	}

-	/**
-	 * Run a stage_*() method for its saving method. While it runs, the stage method saves and writes at the
-	 * same points, and fires its hooks in the same order, as the saving method always did. It also does not
-	 * refuse the object, so a class that has not adopted the stage method keeps working.
-	 *
-	 * @since 11.4.0
-	 * @param callable $stage Callback that calls the stage method.
-	 * @return mixed What the stage method returns.
-	 */
-	protected function write_through( callable $stage ) {
-		$writing_through       = $this->writing_through;
-		$this->writing_through = true;
-		try {
-			return $stage();
-		} finally {
-			$this->writing_through = $writing_through;
-		}
-	}
-
-	/**
-	 * Refuse a direct call of a stage_*() method when a class overrides its saving method without overriding the
-	 * stage method too. Staging would skip the rules of that override. A saving method that runs its stage method
-	 * through write_through() is not refused, so a class that has not adopted the stage method keeps working.
-	 *
-	 * @since 11.4.0
-	 * @param string $method       Saving method, for example add_product.
-	 * @param string $stage_method Stage method, for example stage_product_item.
-	 * @throws WC_Data_Exception When a class has not adopted the stage method.
-	 */
-	protected function refuse_unstaged_override( string $method, string $stage_method ): void {
-		if ( $this->writing_through ) {
-			return;
-		}
-
-		StagedMethod::refuse_unstaged( $this, $method, $stage_method );
-	}
-
 	/**
 	 * Only store the object ID to avoid serializing the data object instance.
 	 *
diff --git a/plugins/woocommerce/includes/abstracts/abstract-wc-order.php b/plugins/woocommerce/includes/abstracts/abstract-wc-order.php
index d302d4c2ae6..547b00423ba 100644
--- a/plugins/woocommerce/includes/abstracts/abstract-wc-order.php
+++ b/plugins/woocommerce/includes/abstracts/abstract-wc-order.php
@@ -51,41 +51,6 @@ abstract class WC_Abstract_Order extends WC_Abstract_Legacy_Order {
 	 */
 	private $last_save_error = null;

-	/**
-	 * Callbacks that the next save() runs, keyed by name. Each entry holds the callback, its arguments, and
-	 * whether it runs after the order is written. The stage_*() methods add them.
-	 *
-	 * @var array<string, array{callback: callable, args: array, after_save: bool}>
-	 */
-	private $deferred_actions = array();
-
-	/**
-	 * Saving methods and their stage methods, in the order the stage methods call each other. For example,
-	 * stage_recalculated_coupons() calls stage_totals().
-	 *
-	 * @var array<string, string>
-	 */
-	private const STAGED_CHAIN = array(
-		'recalculate_coupons' => 'stage_recalculated_coupons',
-		'calculate_totals'    => 'stage_totals',
-		'calculate_taxes'     => 'stage_taxes',
-		'update_taxes'        => 'stage_tax_items',
-	);
-
-	/**
-	 * Coupons that stage_coupon() applied since the last save, keyed by code. The next save() records their usage.
-	 *
-	 * @var WC_Coupon[]
-	 */
-	private $staged_coupons = array();
-
-	/**
-	 * Whether the order had recorded coupon usage when the save that records the staged coupons started.
-	 *
-	 * @var bool
-	 */
-	private $coupon_usage_recorded_before_save = false;
-
 	/**
 	 * Order Data array. This is the core order data exposed in APIs since 3.0.0.
 	 *
@@ -263,8 +228,6 @@ abstract class WC_Abstract_Order extends WC_Abstract_Legacy_Order {
 	 *
 	 * Orders use cache mode. A cached copy keeps its meta IDs, so it does not insert its meta again on save.
 	 * Each copy gets its own meta, item, and date objects, so a change to one copy does not reach the others.
-	 * A copy starts without the staged callbacks and coupons, so a save of the copy does not run them for the
-	 * original order.
 	 *
 	 * Eventually, Core should stop unsetting meta IDs in WC_Data::__clone() for every subclass, and make
 	 * duplication an explicit operation. Duplicating an object does not need to hook into __clone().
@@ -273,8 +236,6 @@ abstract class WC_Abstract_Order extends WC_Abstract_Legacy_Order {
 	 */
 	public function __clone() {
 		parent::__clone();
-		$this->deferred_actions = array();
-		$this->staged_coupons   = array();
 		foreach ( $this->items as $group => $items ) {
 			foreach ( $items as $key => $item ) {
 				$mode = $item->get_clone_mode();
@@ -348,9 +309,6 @@ abstract class WC_Abstract_Order extends WC_Abstract_Legacy_Order {
 		$persisted             = false;
 		$this->last_save_error = null;

-		$deferred_actions = $this->take_deferred_actions();
-		$this->run_deferred_actions( $deferred_actions, false );
-
 		try {
 			/**
 			 * Trigger action before saving to the DB. Allows you to adjust object props before save.
@@ -397,8 +355,6 @@ abstract class WC_Abstract_Order extends WC_Abstract_Legacy_Order {
 			);
 		}

-		$this->run_deferred_actions( $deferred_actions, true );
-
 		return $this->get_id();
 	}

@@ -413,121 +369,6 @@ abstract class WC_Abstract_Order extends WC_Abstract_Legacy_Order {
 		return $this->last_save_error;
 	}

-	/**
-	 * Refuse the stage methods that a stage method calls, from the given saving method to the end of the chain.
-	 * A stage method calls this before it fires a hook or changes the order, so a refusal deeper in the chain
-	 * does not leave a change half done.
-	 *
-	 * @since 11.4.0
-	 * @param string $method First saving method of the chain to check, for example calculate_totals.
-	 * @throws WC_Data_Exception When a class has not adopted one of the stage methods.
-	 */
-	private function refuse_unstaged_chain( string $method ): void {
-		$chain = array_slice( self::STAGED_CHAIN, (int) array_search( $method, array_keys( self::STAGED_CHAIN ), true ), null, true );
-		foreach ( $chain as $saving_method => $stage_method ) {
-			$this->refuse_unstaged_override( $saving_method, $stage_method );
-		}
-	}
-
-	/**
-	 * Leave a callback to the next save(), which runs it before or after the order is written. An entry with
-	 * the same key replaces the earlier one, and a null callback removes it.
-	 *
-	 * @since 11.4.0
-	 * @param string        $key        Name of the entry.
-	 * @param callable|null $callback   Callback to run, or null to remove the entry.
-	 * @param array         $args       Arguments for the callback.
-	 * @param bool          $after_save True to run the callback after the order is written.
-	 */
-	protected function defer_to_save( string $key, ?callable $callback, array $args = array(), bool $after_save = false ): void {
-		if ( null === $callback ) {
-			unset( $this->deferred_actions[ $key ] );
-			return;
-		}
-
-		$this->deferred_actions[ $key ] = array(
-			'callback'   => $callback,
-			'args'       => $args,
-			'after_save' => $after_save,
-		);
-	}
-
-	/**
-	 * Take the deferred callbacks and clear the list, so that each one runs for one save only. When the write
-	 * fails, run_deferred_actions() puts the after-save callbacks back for the next save.
-	 *
-	 * @since 11.4.0
-	 * @return array
-	 */
-	protected function take_deferred_actions(): array {
-		$deferred_actions       = $this->deferred_actions;
-		$this->deferred_actions = array();
-
-		return $deferred_actions;
-	}
-
-	/**
-	 * Run the deferred callbacks that belong before or after the write. When the write fails, the callbacks
-	 * that belong after it stay queued for the next save, so no hook reports a change that was not saved.
-	 * A callback queued under the same key during the failed save replaces the old one.
-	 *
-	 * @since 11.4.0
-	 * @param array $deferred_actions Entries from take_deferred_actions().
-	 * @param bool  $after_save       True to run the entries that belong after the write.
-	 */
-	protected function run_deferred_actions( array $deferred_actions, bool $after_save ): void {
-		if ( $after_save && null !== $this->last_save_error ) {
-			$this->deferred_actions += array_filter(
-				$deferred_actions,
-				static function ( array $entry ): bool {
-					return $entry['after_save'];
-				}
-			);
-			return;
-		}
-
-		foreach ( $deferred_actions as $entry ) {
-			if ( $entry['after_save'] === $after_save ) {
-				call_user_func_array( $entry['callback'], $entry['args'] );
-			}
-		}
-	}
-
-	/**
-	 * Run a write or a hook right away when the stage method runs for its saving method, or leave it to the
-	 * next save() otherwise.
-	 *
-	 * A stage method changes the order in memory only. Route its other side effects through this method. Only a
-	 * hook that lets listeners read or change the order before the change may fire at stage time.
-	 *
-	 * @since 11.4.0
-	 * @param string   $key        Name of the deferred entry.
-	 * @param callable $callback   Callback to run.
-	 * @param array    $args       Arguments for the callback.
-	 * @param bool     $after_save True to run a deferred callback after the order is written.
-	 */
-	protected function write_or_defer( string $key, callable $callback, array $args = array(), bool $after_save = false ): void {
-		if ( $this->writing_through ) {
-			unset( $this->deferred_actions[ $key ] );
-			call_user_func_array( $callback, $args );
-			return;
-		}
-
-		$this->defer_to_save( $key, $callback, $args, $after_save );
-	}
-
-	/**
-	 * Save the order when the stage method runs for its saving method, at the point where the saving method
-	 * always saved. Do nothing otherwise.
-	 *
-	 * @since 11.4.0
-	 */
-	protected function save_if_writing_through(): void {
-		if ( $this->writing_through ) {
-			$this->save();
-		}
-	}
-
 	/**
 	 * Log an error about this order is exception is encountered.
 	 *
@@ -1338,39 +1179,18 @@ abstract class WC_Abstract_Order extends WC_Abstract_Legacy_Order {
 	 * database deletion until the next call to save(). Custom stores overriding `delete_items()`
 	 * without also overriding `delete_items_by_ids()` retain the historical synchronous behavior.
 	 *
-	 * @uses self::stage_order_items_removal()
 	 * @param string|null $type Order item type. Default null (remove every type).
 	 * @throws Exception If persisted item IDs cannot be read or synchronous item deletion fails.
 	 * @return void
 	 */
 	public function remove_order_items( $type = null ) {
-		$this->write_through(
-			function () use ( $type ) {
-				$this->stage_order_items_removal( $type );
-			}
-		);
-	}
-
-	/**
-	 * Remove line items from the order in memory, like remove_order_items(). For a custom store that deletes
-	 * items synchronously, leave the deletion and woocommerce_removed_order_items to the next save(), which
-	 * runs them before it writes. remove_order_items() runs this method through write_through(), so it deletes
-	 * right away, as it always did.
-	 *
-	 * @since 11.4.0
-	 * @param string|null $type Order item type. Default null (remove every type).
-	 * @throws Exception If persisted item IDs cannot be read or synchronous item deletion fails.
-	 * @return void
-	 */
-	public function stage_order_items_removal( $type = null ) {
-		$this->refuse_unstaged_override( 'remove_order_items', 'stage_order_items_removal' );

 		// Guard against extension code passing non-string values. Anything not
 		// a string or null is ignored so it never reaches the deferred queue or
 		// the data store. Surface the misuse so it's traceable rather than silent.
 		if ( null !== $type && ! is_string( $type ) ) {
 			wc_doing_it_wrong(
-				__CLASS__ . '::remove_order_items',
+				__METHOD__,
 				sprintf( esc_html( 'remove_order_items() expects a string item type or null; received %s.' ), esc_html( gettype( $type ) ) ),
 				'11.0.0'
 			);
@@ -1392,7 +1212,8 @@ abstract class WC_Abstract_Order extends WC_Abstract_Legacy_Order {
 		$delete_synchronously = ! $this->data_store_supports_deferred_item_deletion();

 		if ( $delete_synchronously && $has_persisted_items ) {
-			$this->write_or_defer( 'delete_order_items_' . (string) $type, array( $this, 'delete_items_synchronously' ), array( $type ) );
+			// @phpstan-ignore-next-line -- Required order data store method forwarded by WC_Data_Store::__call().
+			$this->data_store->delete_items( $this, $type );
 		}

 		if ( ! empty( $type ) ) {
@@ -1457,35 +1278,15 @@ abstract class WC_Abstract_Order extends WC_Abstract_Legacy_Order {
 		}

 		if ( $delete_synchronously ) {
-			$this->write_or_defer( 'removed_order_items_' . (string) $type, array( $this, 'fire_removed_order_items_action' ), array( $type ) );
+			/**
+			 * This action is documented in save_items().
+			 *
+			 * @since 7.8.0
+			 */
+			do_action( 'woocommerce_removed_order_items', $this, $type );
 		}
 	}

-	/**
-	 * Delete order items through a custom store that does not defer the deletion.
-	 *
-	 * @param string|null $type Order item type, or null for every type.
-	 * @throws Exception If synchronous item deletion fails.
-	 */
-	private function delete_items_synchronously( $type ): void {
-		// @phpstan-ignore-next-line -- Required order data store method forwarded by WC_Data_Store::__call().
-		$this->data_store->delete_items( $this, $type );
-	}
-
-	/**
-	 * Fire woocommerce_removed_order_items after a synchronous deletion.
-	 *
-	 * @param string|null $type Order item type, or null for every type.
-	 */
-	private function fire_removed_order_items_action( $type ): void {
-		/**
-		 * This action is documented in save_items().
-		 *
-		 * @since 7.8.0
-		 */
-		do_action( 'woocommerce_removed_order_items', $this, $type );
-	}
-
 	/**
 	 * Convert a type to a types group.
 	 *
@@ -1960,31 +1761,10 @@ abstract class WC_Abstract_Order extends WC_Abstract_Legacy_Order {
 	 * Apply a coupon to the order and recalculate totals.
 	 *
 	 * @since 3.2.0
-	 * @uses self::stage_coupon()
 	 * @param string|WC_Coupon $raw_coupon Coupon code or object.
 	 * @return true|WP_Error True if applied, error if not.
 	 */
 	public function apply_coupon( $raw_coupon ) {
-		return $this->write_through(
-			function () use ( $raw_coupon ) {
-				return $this->stage_coupon( $raw_coupon );
-			}
-		);
-	}
-
-	/**
-	 * Apply a coupon to the order and recalculate totals in memory, like apply_coupon(), but do not save. The
-	 * next save() writes the order and then records the coupon usage. apply_coupon() runs this method through
-	 * write_through(), so it saves and records the usage at the same points as it always did.
-	 *
-	 * @since 11.4.0
-	 * @param string|WC_Coupon $raw_coupon Coupon code or object.
-	 * @return true|WP_Error True if applied, error if not.
-	 */
-	public function stage_coupon( $raw_coupon ) {
-		$this->refuse_unstaged_override( 'apply_coupon', 'stage_coupon' );
-		$this->refuse_unstaged_chain( 'recalculate_coupons' );
-
 		if ( is_a( $raw_coupon, 'WC_Coupon' ) ) {
 			$coupon = $raw_coupon;
 		} elseif ( is_string( $raw_coupon ) ) {
@@ -2041,12 +1821,6 @@ abstract class WC_Abstract_Order extends WC_Abstract_Legacy_Order {
 		/**
 		 * Action to signal that a coupon has been applied to an order.
 		 *
-		 * Fires before the order is saved and before the coupon totals are recalculated. A listener can change
-		 * the order in memory, for example add a line item, and the new totals include that change. After
-		 * stage_coupon(), the order might never be saved: a validator can refuse the change, or
-		 * stage_coupon_removal() can remove the coupon before the save. Keep the listener to in-memory changes,
-		 * and do not write to the database from it.
-		 *
 		 * @param  WC_Coupon $coupon The applied coupon object.
 		 * @param  WC_Order  $order  The current order object.
 		 *
@@ -2055,94 +1829,39 @@ abstract class WC_Abstract_Order extends WC_Abstract_Legacy_Order {
 		do_action( 'woocommerce_order_applied_coupon', $coupon, $this );

 		$this->set_coupon_discount_amounts( $discounts );
-		$recorded_before_save = $this->writing_through && $this->has_recorded_coupon_usage();
-		$this->save_if_writing_through();
-
-		// Recalculate totals and taxes.
-		if ( $this->writing_through ) {
-			$this->recalculate_coupons();
-		} else {
-			$this->stage_recalculated_coupons();
-		}
-
-		if ( $this->writing_through ) {
-			if ( $recorded_before_save && $this->has_recorded_coupon_usage() ) {
-				$this->increase_coupon_usage( array( $coupon ) );
-			}
-			wc_update_coupon_usage_counts( $this->get_id() );
-		} else {
-			$this->staged_coupons[ $coupon->get_code() ] = $coupon;
-			$this->defer_to_save( 'read_coupon_usage_before_save', array( $this, 'read_coupon_usage_before_save' ) );
-			$this->defer_to_save( 'record_staged_coupon_usage', array( $this, 'record_staged_coupon_usage' ), array(), true );
-		}
-
-		return true;
-	}
-
-	/**
-	 * Whether the stored order has its coupon usage recorded.
-	 *
-	 * @return bool
-	 */
-	private function has_recorded_coupon_usage(): bool {
 		/**
 		 * Data store wrapper.
 		 *
 		 * @var WC_Data_Store $order_data_store
 		 */
 		$order_data_store = $this->get_data_store();
-		// @phpstan-ignore-next-line method.notFound (Guarded by has_callable() and called via __call() on the underlying order data store instance.)
-		return $order_data_store->has_callable( 'get_recorded_coupon_usage_counts' ) && $order_data_store->get_recorded_coupon_usage_counts( $this );
-	}
+		// Read before the save: when the save itself records the usage, the status hook has already counted this coupon.
+		// @phpstan-ignore-next-line method.notFound (Guarded by has_callable() and called via __call() on the underlying order data store instance).
+		$recorded_before_save = $order_data_store->has_callable( 'get_recorded_coupon_usage_counts' ) && $order_data_store->get_recorded_coupon_usage_counts( $this );

-	/**
-	 * Remember whether the order had recorded coupon usage before the write. The write can record the usage of
-	 * every coupon, the staged ones included, through a status change.
-	 */
-	private function read_coupon_usage_before_save(): void {
-		$this->coupon_usage_recorded_before_save = $this->has_recorded_coupon_usage();
-	}
-
-	/**
-	 * Record the usage of the staged coupons once, against the coupons of the saved order. When the order
-	 * had recorded usage before the write and still has it after, count the staged coupons, which that usage
-	 * did not include.
-	 * wc_update_coupon_usage_counts() then counts every coupon of an order that has not recorded usage yet.
-	 */
-	private function record_staged_coupon_usage(): void {
-		$coupons              = $this->staged_coupons;
-		$this->staged_coupons = array();
-
-		if ( $this->coupon_usage_recorded_before_save && $this->has_recorded_coupon_usage() ) {
-			$this->increase_coupon_usage( $coupons );
-		}
+		$this->save();

-		wc_update_coupon_usage_counts( $this->get_id() );
-	}
+		// Recalculate totals and taxes.
+		$this->recalculate_coupons();

-	/**
-	 * Increase the usage count of applied coupons, and store the identity each one was counted under.
-	 *
-	 * @param WC_Coupon[] $coupons Applied coupons.
-	 */
-	private function increase_coupon_usage( array $coupons ): void {
+		// Record usage so counts and validation is correct.
 		$used_by = $this->get_user_id();

 		if ( ! $used_by && is_callable( array( $this, 'get_billing_email' ) ) ) {
 			$used_by = $this->get_billing_email();
 		}

-		$identities = array();
-		foreach ( $coupons as $coupon ) {
+		// @phpstan-ignore-next-line method.notFound (Guarded by has_callable() and called via __call() on the underlying order data store instance.)
+		if ( $recorded_before_save && $order_data_store->has_callable( 'get_recorded_coupon_usage_counts' ) && $order_data_store->get_recorded_coupon_usage_counts( $this ) ) {
 			$coupon->increase_usage_count( $used_by, $this instanceof WC_Order ? $this : null );
 			if ( $coupon->get_id() ) {
-				$identities[ $coupon->get_id() ] = $used_by;
+				$this->save_coupon_usage_identities( array( $coupon->get_id() => $used_by ) + $this->get_coupon_usage_identities() );
 			}
 		}

-		if ( ! empty( $identities ) ) {
-			$this->save_coupon_usage_identities( $identities + $this->get_coupon_usage_identities() );
-		}
+		wc_update_coupon_usage_counts( $this->get_id() );
+
+		return true;
 	}

 	/**
@@ -2259,34 +1978,19 @@ abstract class WC_Abstract_Order extends WC_Abstract_Legacy_Order {
 	 * @since 3.2.0
 	 * @since 7.6.0 Returns a boolean indicating success.
 	 *
-	 * @uses self::stage_coupon_removal()
 	 * @param  string $code Coupon code.
 	 * @return bool TRUE if coupon was removed, FALSE otherwise.
 	 */
 	public function remove_coupon( $code ) {
-		return $this->write_through(
-			function () use ( $code ) {
-				return $this->stage_coupon_removal( $code );
-			}
-		);
-	}
-
-	/**
-	 * Remove a coupon from the order and recalculate totals in memory, like remove_coupon(), but do not save.
-	 * The next save() lowers the coupon usage count before it writes, and fires woocommerce_order_removed_coupon
-	 * after it writes. remove_coupon() runs this method through write_through(), so it does both at the same
-	 * points as it always did.
-	 *
-	 * @since 11.4.0
-	 * @param  string $code Coupon code.
-	 * @return bool True if the coupon was removed, false otherwise.
-	 */
-	public function stage_coupon_removal( $code ) {
-		$this->refuse_unstaged_override( 'remove_coupon', 'stage_coupon_removal' );
-		$this->refuse_unstaged_chain( 'recalculate_coupons' );
-
-		$coupons      = $this->get_items( 'coupon' );
-		$has_recorded = $this->has_recorded_coupon_usage();
+		$coupons = $this->get_items( 'coupon' );
+		/**
+		 * Data store wrapper.
+		 *
+		 * @var WC_Data_Store $order_data_store
+		 */
+		$order_data_store = $this->get_data_store();
+		// @phpstan-ignore-next-line method.notFound (Guarded by has_callable() and called via __call() on the underlying order data store instance.)
+		$has_recorded = $order_data_store->has_callable( 'get_recorded_coupon_usage_counts' ) && $order_data_store->get_recorded_coupon_usage_counts( $this );

 		$used_by = $this->get_user_id();
 		if ( ! $used_by && is_callable( array( $this, 'get_billing_email' ) ) ) {
@@ -2301,28 +2005,21 @@ abstract class WC_Abstract_Order extends WC_Abstract_Legacy_Order {
 				$this->remove_item( $item_key );
 				$coupon_object = new WC_Coupon( $code );

-				$staged = isset( $this->staged_coupons[ $coupon_object->get_code() ] );
-				if ( $staged ) {
-					unset( $this->staged_coupons[ $coupon_object->get_code() ] );
-					if ( empty( $this->staged_coupons ) ) {
-						$this->defer_to_save( 'read_coupon_usage_before_save', null );
-						$this->defer_to_save( 'record_staged_coupon_usage', null );
-					}
-				}
-
-				if ( $has_recorded && ! $staged ) {
-					$this->write_or_defer( 'release_coupon_usage_' . $coupon_object->get_code(), array( $this, 'release_removed_coupon_usage' ), array( $stored_item, $coupon_object, $used_by ) );
-				} elseif ( $has_recorded ) {
-					$this->clear_recorded_coupon_usage_without_coupons();
+				if ( $has_recorded ) {
+					$this->release_removed_coupon_usage( $stored_item, $coupon_object, $used_by );
 				}

-				if ( $this->writing_through ) {
-					$this->recalculate_coupons();
-				} else {
-					$this->stage_recalculated_coupons();
-				}
+				$this->recalculate_coupons();

-				$this->write_or_defer( 'removed_coupon_' . $coupon_object->get_code(), array( $this, 'fire_removed_coupon_action' ), array( $coupon_object ), true );
+				/**
+				 * Action hook fired when a coupon is removed from an order.
+				 *
+				 * @param  WC_Coupon $coupon_object The removed coupon object.
+				 * @param  WC_Order  $order         The current order object.
+				 *
+				 * @since 10.8.0
+				 */
+				do_action( 'woocommerce_order_removed_coupon', $coupon_object, $this );

 				return true;
 			}
@@ -2417,27 +2114,6 @@ abstract class WC_Abstract_Order extends WC_Abstract_Legacy_Order {
 		}
 	}

-	/**
-	 * Fire woocommerce_order_removed_coupon for a removed coupon.
-	 *
-	 * @param WC_Coupon $coupon_object Removed coupon.
-	 */
-	private function fire_removed_coupon_action( WC_Coupon $coupon_object ): void {
-		/**
-		 * Action hook fired when a coupon is removed from an order.
-		 *
-		 * Fires after the order is saved. After stage_coupon_removal(), it fires from the next save(). It also
-		 * fires for a coupon that stage_coupon() applied and that was removed before any save, so a listener
-		 * can undo what it did on woocommerce_order_applied_coupon.
-		 *
-		 * @param  WC_Coupon $coupon_object The removed coupon object.
-		 * @param  WC_Order  $order         The current order object.
-		 *
-		 * @since 10.8.0
-		 */
-		do_action( 'woocommerce_order_removed_coupon', $coupon_object, $this );
-	}
-
 	/**
 	 * Get the identity each coupon was counted under, keyed by coupon ID.
 	 *
@@ -2478,28 +2154,9 @@ abstract class WC_Abstract_Order extends WC_Abstract_Legacy_Order {
 	 * This method is public since WooCommerce 3.8.0.
 	 *
 	 * @since 3.2.0
-	 * @uses self::stage_recalculated_coupons()
 	 * @return void
 	 */
 	public function recalculate_coupons() {
-		$this->write_through(
-			function () {
-				$this->stage_recalculated_coupons();
-			}
-		);
-	}
-
-	/**
-	 * Apply all coupons in this order again to all line items and recalculate totals and taxes in memory, like
-	 * recalculate_coupons(), but do not save. recalculate_coupons() runs this method through write_through().
-	 *
-	 * @since 11.4.0
-	 * @return void
-	 */
-	public function stage_recalculated_coupons() {
-		$this->refuse_unstaged_override( 'recalculate_coupons', 'stage_recalculated_coupons' );
-		$this->refuse_unstaged_chain( 'calculate_totals' );
-
 		// Reset line item totals.
 		foreach ( $this->get_items() as $item ) {
 			$item->set_total( $item->get_subtotal() );
@@ -2552,11 +2209,7 @@ abstract class WC_Abstract_Order extends WC_Abstract_Legacy_Order {
 		$this->set_item_discount_amounts( $discounts );

 		// Recalculate totals and taxes.
-		if ( $this->writing_through ) {
-			$this->calculate_totals( true );
-		} else {
-			$this->stage_totals( true );
-		}
+		$this->calculate_totals( true );
 	}

 	/**
@@ -2697,7 +2350,7 @@ abstract class WC_Abstract_Order extends WC_Abstract_Legacy_Order {
 	}

 	/**
-	 * Find the unsaved coupon item for a code. A staged coupon has no ID until the order is saved.
+	 * Find the unsaved coupon item for a code. A coupon line has no ID until the order is saved.
 	 *
 	 * @param string $coupon_code Coupon code.
 	 * @return WC_Order_Item_Coupon|null
@@ -2716,37 +2369,12 @@ abstract class WC_Abstract_Order extends WC_Abstract_Legacy_Order {
 	 * Add a product line item to the order. This is the only line item type with
 	 * its own method because it saves looking up order amounts (costs are added up for you).
 	 *
-	 * @uses self::stage_product_item()
 	 * @param  WC_Product $product Product object.
 	 * @param  int        $qty Quantity to add.
 	 * @param  array      $args Args for the added product, including an optional tax location for its price.
 	 * @return int
 	 */
 	public function add_product( $product, $qty = 1, $args = array() ) {
-		return $this->write_through(
-			function () use ( $product, $qty, $args ) {
-				return $this->stage_product_item( $product, $qty, $args );
-			}
-		)->get_id();
-	}
-
-	/**
-	 * Build a product line item and add it to the order in memory, like add_product(), but do not save the
-	 * item. The next save() of the order writes it. add_product() runs this method through write_through(), so
-	 * it saves the item first, as it always did.
-	 *
-	 * An order class that overrides add_product() with rules of its own must override this method too, with
-	 * the same rules.
-	 *
-	 * @since 11.4.0
-	 * @param  WC_Product $product Product object.
-	 * @param  int        $qty Quantity to add.
-	 * @param  array      $args Args for the added product, including an optional tax location for its price.
-	 * @return WC_Order_Item_Product The item, saved only when add_product() runs this method.
-	 */
-	public function stage_product_item( $product, $qty = 1, $args = array() ) {
-		$this->refuse_unstaged_override( 'add_product', 'stage_product_item' );
-
 		if ( $product ) {
 			$order = ArrayUtil::get_value_or_default( $args, 'order' );
 			$total = wc_get_price_excluding_tax(
@@ -2793,30 +2421,11 @@ abstract class WC_Abstract_Order extends WC_Abstract_Legacy_Order {
 		$item->set_props( $args );
 		$item->set_backorder_meta();
 		$item->set_order_id( $this->get_id() );
-		if ( $this->writing_through ) {
-			$item->save();
-		}
+		$item->save();
 		$this->add_item( $item );
-		$this->write_or_defer( 'add_product_action_' . spl_object_id( $item ), array( $this, 'fire_add_product_action' ), array( $item, $product, $qty, $args ), true );
-		wp_cache_delete( 'order-needs-processing-' . $this->get_id(), 'orders' );
-		return $item;
-	}
-
-	/**
-	 * Fire the deprecated woocommerce_order_add_product action for a saved product item. Skip an item that the
-	 * order removed before the save, because save() never wrote it.
-	 *
-	 * @param WC_Order_Item_Product $item    Saved item.
-	 * @param WC_Product|false      $product Product object.
-	 * @param int                   $qty     Quantity added.
-	 * @param array                 $args    Args for the added product, after the defaults.
-	 */
-	private function fire_add_product_action( $item, $product, $qty, $args ): void {
-		if ( ! $item->get_id() ) {
-			return;
-		}
-
 		wc_do_deprecated_action( 'woocommerce_order_add_product', array( $this->get_id(), $item->get_id(), $product, $qty, $args ), '3.0', 'woocommerce_new_order_item action instead' );
+		wp_cache_delete( 'order-needs-processing-' . $this->get_id(), 'orders' );
+		return $item->get_id();
 	}

 	/*
@@ -2871,29 +2480,9 @@ abstract class WC_Abstract_Order extends WC_Abstract_Legacy_Order {
 	 * Calculate shipping total.
 	 *
 	 * @since 2.2
-	 * @uses self::stage_shipping_total()
 	 * @return float
 	 */
 	public function calculate_shipping() {
-		$this->write_through(
-			function () {
-				$this->stage_shipping_total();
-			}
-		);
-
-		return $this->get_shipping_total();
-	}
-
-	/**
-	 * Calculate the shipping total in memory, like calculate_shipping(), but do not save.
-	 * calculate_shipping() runs this method through write_through().
-	 *
-	 * @since 11.4.0
-	 * @return void
-	 */
-	public function stage_shipping_total() {
-		$this->refuse_unstaged_override( 'calculate_shipping', 'stage_shipping_total' );
-
 		$shipping_total = 0;

 		foreach ( $this->get_shipping_methods() as $shipping ) {
@@ -2901,7 +2490,9 @@ abstract class WC_Abstract_Order extends WC_Abstract_Legacy_Order {
 		}

 		$this->set_shipping_total( $shipping_total );
-		$this->save_if_writing_through();
+		$this->save();
+
+		return $this->get_shipping_total();
 	}

 	/**
@@ -3032,30 +2623,10 @@ abstract class WC_Abstract_Order extends WC_Abstract_Legacy_Order {
 	 *
 	 * Will use the base country unless customer addresses are set.
 	 *
-	 * @uses self::stage_taxes()
 	 * @param array $args Added in 3.0.0 to pass things like location.
 	 * @return void
 	 */
 	public function calculate_taxes( $args = array() ) {
-		$this->write_through(
-			function () use ( $args ) {
-				$this->stage_taxes( $args );
-			}
-		);
-	}
-
-	/**
-	 * Calculate the taxes of the items and update the tax items in memory, like calculate_taxes(), but do not
-	 * save. calculate_taxes() runs this method through write_through().
-	 *
-	 * @since 11.4.0
-	 * @param array $args Override the tax location.
-	 * @return void
-	 */
-	public function stage_taxes( $args = array() ) {
-		$this->refuse_unstaged_override( 'calculate_taxes', 'stage_taxes' );
-		$this->refuse_unstaged_chain( 'update_taxes' );
-
 		do_action( 'woocommerce_order_before_calculate_taxes', $args, $this );

 		$calculate_tax_for  = $this->get_tax_location( $args );
@@ -3090,11 +2661,7 @@ abstract class WC_Abstract_Order extends WC_Abstract_Legacy_Order {
 			}
 		}

-		if ( $this->writing_through ) {
-			$this->update_taxes();
-		} else {
-			$this->stage_tax_items();
-		}
+		$this->update_taxes();
 	}

 	/**
@@ -3115,32 +2682,13 @@ abstract class WC_Abstract_Order extends WC_Abstract_Legacy_Order {
 	/**
 	 * Update tax lines for the order based on the line item taxes themselves.
 	 *
-	 * @uses self::stage_tax_items()
 	 * @return void
 	 */
 	public function update_taxes() {
-		$this->write_through(
-			function () {
-				$this->stage_tax_items();
-			}
-		);
-	}
-
-	/**
-	 * Update the tax items of the order from the item taxes in memory, like update_taxes(), but do not save.
-	 * The next save() writes the changed tax items with the other items of the order, so a failed order write
-	 * leaves them unchanged. update_taxes() runs this method through write_through(), so it saves right away.
-	 *
-	 * @since 11.4.0
-	 * @return void
-	 */
-	public function stage_tax_items() {
-		$this->refuse_unstaged_override( 'update_taxes', 'stage_tax_items' );
-
 		$cart_taxes     = array();
 		$shipping_taxes = array();
 		$existing_taxes = $this->get_taxes();
-		$kept_rate_ids  = array();
+		$saved_rate_ids = array();

 		foreach ( $this->get_items( array( 'line_item', 'fee' ) ) as $item_id => $item ) {
 			$taxes = $item->get_taxes();
@@ -3169,7 +2717,7 @@ abstract class WC_Abstract_Order extends WC_Abstract_Legacy_Order {
 		foreach ( $existing_taxes as $tax ) {
 			$tax_rate_id = $tax->get_rate_id();
 			// Remove taxes which no longer exist for cart/shipping.
-			if ( ( ! array_key_exists( $tax_rate_id, $cart_taxes ) && ! array_key_exists( $tax_rate_id, $shipping_taxes ) ) || in_array( $tax_rate_id, $kept_rate_ids, true ) ) {
+			if ( ( ! array_key_exists( $tax_rate_id, $cart_taxes ) && ! array_key_exists( $tax_rate_id, $shipping_taxes ) ) || in_array( $tax_rate_id, $saved_rate_ids, true ) ) {
 				$this->remove_item( $this->get_stored_item_key( $tax ) );
 				continue;
 			}
@@ -3184,11 +2732,11 @@ abstract class WC_Abstract_Order extends WC_Abstract_Legacy_Order {
 			$tax->set_tax_total( $cart_taxes[ $tax_rate_id ] ?? 0 );
 			$tax->set_shipping_tax_total( ! empty( $shipping_taxes[ $tax_rate_id ] ) ? $shipping_taxes[ $tax_rate_id ] : 0 );

-			// Do not save the tax item here. save_items() writes it with the order, so a failed order write leaves it unchanged.
-			$kept_rate_ids[] = $tax_rate_id;
+			$saved_rate_ids[] = $tax_rate_id;
+			$tax->save();
 		}

-		$new_rate_ids = wp_parse_id_list( array_diff( array_keys( $cart_taxes + $shipping_taxes ), $kept_rate_ids ) );
+		$new_rate_ids = wp_parse_id_list( array_diff( array_keys( $cart_taxes + $shipping_taxes ), $saved_rate_ids ) );

 		// New taxes.
 		foreach ( $new_rate_ids as $tax_rate_id ) {
@@ -3208,7 +2756,7 @@ abstract class WC_Abstract_Order extends WC_Abstract_Legacy_Order {

 		$this->set_shipping_tax( array_sum( $shipping_taxes ) );
 		$this->set_cart_tax( array_sum( $cart_taxes ) );
-		$this->save_if_writing_through();
+		$this->save();
 	}

 	/**
@@ -3243,37 +2791,10 @@ abstract class WC_Abstract_Order extends WC_Abstract_Legacy_Order {
 	 * Calculate totals by looking at the contents of the order. Stores the totals and returns the orders final total.
 	 *
 	 * @since 2.2
-	 * @uses self::stage_totals()
 	 * @param  bool $and_taxes Calc taxes if true.
 	 * @return float calculated grand total.
 	 */
 	public function calculate_totals( $and_taxes = true ) {
-		return $this->write_through(
-			function () use ( $and_taxes ) {
-				return $this->stage_totals( $and_taxes );
-			}
-		);
-	}
-
-	/**
-	 * Calculate totals, and taxes when asked, in memory, like calculate_totals(), but do not save.
-	 * calculate_totals() runs this method through write_through(), so it saves at the same points as it
-	 * always did.
-	 *
-	 * Called directly, this method leaves woocommerce_order_after_calculate_totals to the next save(), which
-	 * fires it right before the write, so a listener that changes the order gets its change written. The new
-	 * tax items have no IDs yet when the action fires; read them from the order object, not from the database.
-	 *
-	 * @since 11.4.0
-	 * @param  bool $and_taxes Calc taxes if true.
-	 * @return float calculated grand total.
-	 */
-	public function stage_totals( $and_taxes = true ) {
-		$this->refuse_unstaged_override( 'calculate_totals', 'stage_totals' );
-		if ( $and_taxes ) {
-			$this->refuse_unstaged_chain( 'calculate_taxes' );
-		}
-
 		do_action( 'woocommerce_order_before_calculate_totals', $and_taxes, $this );

 		$fees_total        = 0;
@@ -3306,11 +2827,9 @@ abstract class WC_Abstract_Order extends WC_Abstract_Legacy_Order {
 			$fees_total += (float) $item->get_total();
 		}

-		// Calculate taxes for items, shipping, discounts. Note; when writing through, this also triggers save().
-		if ( $and_taxes && $this->writing_through ) {
+		// Calculate taxes for items, shipping, discounts. Note; this also triggers save().
+		if ( $and_taxes ) {
 			$this->calculate_taxes();
-		} elseif ( $and_taxes ) {
-			$this->stage_taxes();
 		}

 		// Sum taxes again so we can work out how much tax was discounted. This uses original values, not those possibly rounded to 2dp.
@@ -3334,20 +2853,16 @@ abstract class WC_Abstract_Order extends WC_Abstract_Legacy_Order {
 			$this->calculate_cogs_total_value();
 		}

-		$after_calculate_totals = static function ( $and_taxes, $order, $staged ) {
-			/**
-			 * Fires after the order totals are calculated.
-			 *
-			 * @param bool              $and_taxes Whether the taxes were calculated too.
-			 * @param WC_Abstract_Order $order     Order object.
-			 * @param bool              $staged    Whether the totals were staged and are not yet saved. Always passed; a listener that wants it declares it with a default. When true, read the pending changes from $order, not from the database; only new items may still be waiting for an ID. @since 11.4.0
-			 * @since 3.3.0
-			 */
-			do_action( 'woocommerce_order_after_calculate_totals', $and_taxes, $order, $staged );
-		};
-		$this->write_or_defer( 'after_calculate_totals', $after_calculate_totals, array( $and_taxes, $this, ! $this->writing_through ) );
+		/**
+		 * Fires after the order totals are calculated.
+		 *
+		 * @param bool              $and_taxes Whether the taxes were calculated too.
+		 * @param WC_Abstract_Order $order     Order object.
+		 * @since 3.3.0
+		 */
+		do_action( 'woocommerce_order_after_calculate_totals', $and_taxes, $this );

-		$this->save_if_writing_through();
+		$this->save();

 		return $this->get_total();
 	}
diff --git a/plugins/woocommerce/includes/class-wc-order-refund.php b/plugins/woocommerce/includes/class-wc-order-refund.php
index 92a0d578511..c00fe93b7b1 100644
--- a/plugins/woocommerce/includes/class-wc-order-refund.php
+++ b/plugins/woocommerce/includes/class-wc-order-refund.php
@@ -156,16 +156,13 @@ class WC_Order_Refund extends WC_Abstract_Order {
 	}

 	/**
-	 * Coupons cannot be applied to refunds, so a refund never records coupon usage. apply_coupon() calls this
-	 * method, so it refuses the coupon too.
+	 * Coupons cannot be applied to refunds, so a refund never records coupon usage.
 	 *
-	 * @since 11.4.0
+	 * @since 11.3.0
 	 * @param string|WC_Coupon $raw_coupon Coupon code or object.
 	 * @return WP_Error
 	 */
-	public function stage_coupon( $raw_coupon ) {
-		$this->refuse_unstaged_override( 'apply_coupon', 'stage_coupon' );
-
+	public function apply_coupon( $raw_coupon ) {
 		return new WP_Error( 'invalid_coupon', __( 'Coupons cannot be applied to refunds.', 'woocommerce' ) );
 	}

diff --git a/plugins/woocommerce/includes/class-wc-order.php b/plugins/woocommerce/includes/class-wc-order.php
index 36374e03480..d63ec1801d4 100644
--- a/plugins/woocommerce/includes/class-wc-order.php
+++ b/plugins/woocommerce/includes/class-wc-order.php
@@ -37,13 +37,6 @@ class WC_Order extends WC_Abstract_Order {
 	 */
 	private $payment_mode_recorded = false;

-	/**
-	 * Whether set_status() leaves woocommerce_order_edit_status to the next save(). stage_status() sets it.
-	 *
-	 * @var bool
-	 */
-	private $staging_status = false;
-
 	/**
 	 * Order Data array. This is the core order data exposed in APIs since 3.0.0.
 	 *
@@ -147,10 +140,8 @@ class WC_Order extends WC_Abstract_Order {
 	 * Sales are also recorded for products.
 	 * Finally, record the date of payment.
 	 *
-	 * @uses self::stage_payment_complete()
 	 * @param string $transaction_id Optional transaction id to store in post meta.
-	 * @return bool False when the order is not saved yet, the order write fails or a listener throws. True otherwise,
-	 *              also when the order status does not let the payment complete.
+	 * @return bool success
 	 */
 	public function payment_complete( $transaction_id = '' ) {
 		if ( ! $this->get_id() ) { // Order must exist.
@@ -158,65 +149,6 @@ class WC_Order extends WC_Abstract_Order {
 		}

 		try {
-			$this->write_through(
-				function () use ( $transaction_id ) {
-					return $this->stage_payment_complete( $transaction_id );
-				}
-			);
-		} catch ( Exception $e ) {
-			if ( $e === $this->get_last_save_error() ) {
-				return false;
-			}
-			/**
-			 * If there was an error completing the payment, log to a file and add an order note so the admin can take action.
-			 */
-			$logger = wc_get_logger();
-			$logger->error(
-				sprintf(
-					'Error completing payment for order #%d',
-					$this->get_id()
-				),
-				array(
-					'order' => $this,
-					'error' => $e,
-				)
-			);
-			$this->add_order_note( __( 'Payment complete event failed.', 'woocommerce' ) . ' ' . $e->getMessage(), false, false, array( 'note_group' => OrderNoteGroup::ERROR ) );
-			return false;
-		}
-		return true;
-	}
-
-	/**
-	 * Make the in-memory changes of payment_complete(): the transaction ID, the paid date and the payment
-	 * complete status. Leave woocommerce_pre_payment_complete, the session's order_awaiting_payment flag, the
-	 * payment note and woocommerce_payment_complete to the next save(), which runs the first two before it
-	 * writes and adds the note and fires the action after it writes. payment_complete() runs this method through
-	 * write_through(), so it runs all of them and saves right away. When that save fails, the method throws, and
-	 * the note and the action wait for the next save that writes the order with the same status or a paid one.
-	 *
-	 * When the order status is not one that payment can complete, the order does not change, the
-	 * woocommerce_payment_complete_order_status_<status> action fires right away, the method adds nothing for
-	 * the next save(), and it returns false.
-	 *
-	 * An order that is not saved yet does not change, and the method returns false.
-	 *
-	 * An order class that overrides payment_complete() with rules of its own must override this method too,
-	 * with the same rules.
-	 *
-	 * @since 11.4.0
-	 * @param string $transaction_id Optional transaction ID to store.
-	 * @return bool True when the order has changes for save() to write.
-	 * @throws Exception When payment_complete() runs this method and the order write fails.
-	 */
-	public function stage_payment_complete( $transaction_id = '' ) {
-		$this->refuse_unstaged_override( 'payment_complete', 'stage_payment_complete' );
-
-		if ( ! $this->get_id() ) {
-			return false;
-		}
-
-		$pre_payment_complete = static function ( $order_id, $transaction_id ) {
 			/**
 			 * Fires before the payment of an order is completed.
 			 *
@@ -224,128 +156,85 @@ class WC_Order extends WC_Abstract_Order {
 			 * @param string $transaction_id Transaction ID passed to payment_complete().
 			 * @since 2.1.0
 			 */
-			do_action( 'woocommerce_pre_payment_complete', $order_id, $transaction_id );
+			do_action( 'woocommerce_pre_payment_complete', $this->get_id(), $transaction_id );

 			if ( WC()->session ) {
 				WC()->session->set( 'order_awaiting_payment', false );
 			}
-		};
-
-		if ( $this->writing_through ) {
-			$this->write_or_defer( 'pre_payment_complete', $pre_payment_complete, array( $this->get_id(), $transaction_id ) );
-		}

-		/**
-		 * Filters the valid order statuses for payment complete.
-		 *
-		 * @param array    $valid_completed_statuses Array of valid order statuses for payment complete.
-		 * @param WC_Order $this                     Order object.
-		 * @since 2.7.0
-		 */
-		$valid_completed_statuses = apply_filters( 'woocommerce_valid_order_statuses_for_payment_complete', OrderStatus::PAYMENT_COMPLETE_STATUSES, $this );
-		if ( ! $this->has_status( $valid_completed_statuses ) ) {
 			/**
-			 * Fires when payment completes for an order whose status payment cannot complete.
+			 * Filters the valid order statuses for payment complete.
 			 *
-			 * @param int    $order_id       Order ID.
-			 * @param string $transaction_id Transaction ID passed to payment_complete().
-			 * @since 2.1.0
+			 * @param array    $valid_completed_statuses Array of valid order statuses for payment complete.
+			 * @param WC_Order $this                     Order object.
+			 * @since 2.7.0
 			 */
-			do_action( 'woocommerce_payment_complete_order_status_' . $this->get_status(), $this->get_id(), $transaction_id );
-			return false;
-		}
-
-		if ( ! $this->writing_through ) {
-			$this->defer_to_save( 'pre_payment_complete', $pre_payment_complete, array( $this->get_id(), $transaction_id ) );
-		}
-
-		$this->defer_to_save( 'payment_complete', null );
-		$this->defer_to_save( 'payment_complete_note', null );
-
-		if ( ! empty( $transaction_id ) ) {
-			$this->set_transaction_id( $transaction_id );
-		}
-		if ( ! $this->get_date_paid( 'edit' ) ) {
-			$this->set_date_paid( time() );
-		}
-
-		/**
-		 * Filters the order status to set after payment complete.
-		 *
-		 * @param string   $status        Order status.
-		 * @param int      $order_id      Order ID.
-		 * @param WC_Order $this          Order object.
-		 * @since 2.7.0
-		 */
-		$next_status = apply_filters( 'woocommerce_payment_complete_order_status', $this->needs_processing() ? OrderStatus::PROCESSING : OrderStatus::COMPLETED, $this->get_id(), $this );
+			$valid_completed_statuses = apply_filters( 'woocommerce_valid_order_statuses_for_payment_complete', OrderStatus::PAYMENT_COMPLETE_STATUSES, $this );
+			if ( $this->has_status( $valid_completed_statuses ) ) {
+				if ( ! empty( $transaction_id ) ) {
+					$this->set_transaction_id( $transaction_id );
+				}
+				if ( ! $this->get_date_paid( 'edit' ) ) {
+					$this->set_date_paid( time() );
+				}

-		$transaction_id = $this->get_transaction_id();
-		$payment_method = $this->get_payment_method_title();
+				/**
+				 * Filters the order status to set after payment complete.
+				 *
+				 * @param string   $status        Order status.
+				 * @param int      $order_id      Order ID.
+				 * @param WC_Order $this          Order object.
+				 * @since 2.7.0
+				 */
+				$next_status = apply_filters( 'woocommerce_payment_complete_order_status', $this->needs_processing() ? OrderStatus::PROCESSING : OrderStatus::COMPLETED, $this->get_id(), $this );

-		// translators: %1$s is the payment method, %2$s is the transaction id.
-		$payment_complete_note = $payment_method && $transaction_id ? sprintf( __( 'Payment via %1$s (%2$s).', 'woocommerce' ), $payment_method, $transaction_id ) : __( 'Payment complete.', 'woocommerce' );
+				$transaction_id = $this->get_transaction_id();
+				$payment_method = $this->get_payment_method_title();

-		$this->set_status( $next_status, false );
+				// translators: %1$s is the payment method, %2$s is the transaction id.
+				$payment_complete_note = $payment_method && $transaction_id ? sprintf( __( 'Payment via %1$s (%2$s).', 'woocommerce' ), $payment_method, $transaction_id ) : __( 'Payment complete.', 'woocommerce' );

-		$this->save_if_writing_through();
+				$this->set_status( $next_status, false );
+				$this->add_order_note( $payment_complete_note, false, false, array( 'note_group' => OrderNoteGroup::PAYMENT ) );
+				$this->save();

-		$add_note = function () use ( $payment_complete_note ) {
-			try {
-				$this->add_order_note( $payment_complete_note, 0, false, array( 'note_group' => OrderNoteGroup::PAYMENT ) );
-			} catch ( Exception $e ) {
-				wc_get_logger()->error(
-					sprintf( 'Error adding the payment note for order #%d', $this->get_id() ),
-					array(
-						'order' => $this,
-						'error' => $e,
-					)
-				);
+				/**
+				 * Fires after the payment of an order is completed and the order is saved.
+				 *
+				 * @param int    $order_id       Order ID.
+				 * @param string $transaction_id Transaction ID of the order.
+				 * @since 1.2.2
+				 * @since 6.8.0 Passes $transaction_id.
+				 */
+				do_action( 'woocommerce_payment_complete', $this->get_id(), $transaction_id );
+			} else {
+				/**
+				 * Fires when payment completes for an order whose status payment cannot complete.
+				 *
+				 * @param int    $order_id       Order ID.
+				 * @param string $transaction_id Transaction ID passed to payment_complete().
+				 * @since 2.1.0
+				 */
+				do_action( 'woocommerce_payment_complete_order_status_' . $this->get_status(), $this->get_id(), $transaction_id );
 			}
-		};
-
-		$order_id         = $this->get_id();
-		$payment_complete = static function () use ( $order_id, $transaction_id ) {
+		} catch ( Exception $e ) {
 			/**
-			 * Fires after the payment of an order is completed and the order is saved.
-			 *
-			 * @param int    $order_id       Order ID.
-			 * @param string $transaction_id Transaction ID of the order.
-			 * @since 1.2.2
-			 * @since 6.8.0 Passes $transaction_id.
+			 * If there was an error completing the payment, log to a file and add an order note so the admin can take action.
 			 */
-			do_action( 'woocommerce_payment_complete', $order_id, $transaction_id );
-		};
-		$save_error       = $this->writing_through ? $this->get_last_save_error() : null;
-		if ( null !== $save_error ) {
-			$paid_status = $this->get_status();
-			$this->defer_to_save(
-				'payment_complete',
-				function () use ( $paid_status, $add_note, $payment_complete ) {
-					if ( ! $this->has_status( $paid_status ) && ! $this->is_paid() ) {
-						return;
-					}
-					$add_note();
-					try {
-						$payment_complete();
-					} catch ( Exception $e ) {
-						wc_get_logger()->error(
-							sprintf( 'Error completing payment for order #%d', $this->get_id() ),
-							array(
-								'order' => $this,
-								'error' => $e,
-							)
-						);
-						$this->add_order_note( __( 'Payment complete event failed.', 'woocommerce' ) . ' ' . $e->getMessage(), 0, false, array( 'note_group' => OrderNoteGroup::ERROR ) );
-					}
-				},
-				array(),
-				true
+			$logger = wc_get_logger();
+			$logger->error(
+				sprintf(
+					'Error completing payment for order #%d',
+					$this->get_id()
+				),
+				array(
+					'order' => $this,
+					'error' => $e,
+				)
 			);
-			throw $save_error;
+			$this->add_order_note( __( 'Payment complete event failed.', 'woocommerce' ) . ' ' . $e->getMessage(), false, false, array( 'note_group' => OrderNoteGroup::ERROR ) );
+			return false;
 		}
-		$this->write_or_defer( 'payment_complete_note', $add_note, array(), true );
-		$this->write_or_defer( 'payment_complete', $payment_complete, array(), true );
-
 		return true;
 	}

@@ -418,23 +307,14 @@ class WC_Order extends WC_Abstract_Order {
 	/**
 	 * Save data to the database.
 	 *
-	 * When the write fails, the status change hooks do not fire, and the next successful save fires them.
-	 *
 	 * @since 3.0.0
 	 * @return int order ID
 	 */
 	public function save() {
-		$deferred_actions = $this->take_deferred_actions();
-		$this->run_deferred_actions( $deferred_actions, false );
-
 		$this->maybe_set_user_billing_email();
 		$this->maybe_clear_payment_mode();
 		parent::save();
-		if ( null === $this->get_last_save_error() ) {
-			$this->status_transition();
-		}
-
-		$this->run_deferred_actions( $deferred_actions, true );
+		$this->status_transition();

 		return $this->get_id();
 	}
@@ -496,19 +376,9 @@ class WC_Order extends WC_Abstract_Order {
 				'manual' => (bool) $manual_update,
 			);

-			if ( $manual_update && $this->staging_status ) {
-				$this->defer_to_save( 'order_edit_status', 'do_action', array( 'woocommerce_order_edit_status', $this->get_id(), $result['to'] ) );
-			} else {
-				$this->defer_to_save( 'order_edit_status', null );
-			}
-
-			if ( $manual_update && ! $this->staging_status ) {
+			if ( $manual_update ) {
 				/**
-				 * Fires for a manual status change of an order, before the change
-				 * is written, so a listener that reloads the order sees the old row.
-				 * After set_status(), it fires before the paid and completed dates
-				 * are set. After stage_status() or update_status(), it fires from
-				 * save(), with those dates already set on the order object.
+				 * Fires for a manual status change of an order, before the change is written.
 				 *
 				 * @since 3.0.0
 				 * @param int    $order_id Order ID.
@@ -576,37 +446,10 @@ class WC_Order extends WC_Abstract_Order {
 		}
 	}

-	/**
-	 * Set the order status in memory, like set_status(), including the paid and completed dates, but leave
-	 * woocommerce_order_edit_status to the next save(), which fires it before it writes. A later status
-	 * change before that save() replaces the pending action, or cancels it when the change is not manual.
-	 * update_status() calls this method, then save().
-	 *
-	 * An order class that overrides update_status() with rules of its own must override this method
-	 * too, in the same class, with the same rules. A direct call of this method refuses a class that has
-	 * not done that. update_status() runs this method through write_through(), so it keeps working.
-	 *
-	 * @since 11.4.0
-	 * @param string       $new_status    Status to change the order to. No internal wc- prefix is required.
-	 * @param string|false $note          Optional note to add. False will skip adding a note entirely.
-	 * @param bool         $manual_update Is this a manual order status change?.
-	 * @return array
-	 */
-	public function stage_status( $new_status, $note = '', $manual_update = false ) {
-		$this->refuse_unstaged_override( 'update_status', 'stage_status' );
-
-		$this->staging_status = true;
-		try {
-			return $this->set_status( $new_status, $note, $manual_update );
-		} finally {
-			$this->staging_status = false;
-		}
-	}
-
 	/**
 	 * Updates status of order immediately.
 	 *
-	 * @uses self::stage_status()
+	 * @uses self::set_status()
 	 * @param string $new_status    Status to change the order to. No internal wc- prefix is required.
 	 * @param string $note          Optional note to add.
 	 * @param bool   $manual        Is this a manual order status change?.
@@ -618,11 +461,7 @@ class WC_Order extends WC_Abstract_Order {
 		}

 		try {
-			$this->write_through(
-				function () use ( $new_status, $note, $manual ) {
-					return $this->stage_status( $new_status, $note, $manual );
-				}
-			);
+			$this->set_status( $new_status, $note, $manual );
 			$this->save();
 		} catch ( Exception $e ) {
 			$logger = wc_get_logger();
@@ -2290,11 +2129,11 @@ class WC_Order extends WC_Abstract_Order {
 	/**
 	 * Adds a note (comment) to the order. Order must exist.
 	 *
-	 * @param  string $note              Note to add.
-	 * @param  int    $is_customer_note  Is this a note for the customer?.
-	 * @param  bool   $added_by_user     Was the note added by a user?.
-	 * @param  array  $meta_data         Optional meta data to add to the note. Key value pairs.
-	 * @return int                       Comment ID.
+	 * @param  string   $note              Note to add.
+	 * @param  int|bool $is_customer_note  Is this a note for the customer?.
+	 * @param  bool     $added_by_user     Was the note added by a user?.
+	 * @param  array    $meta_data         Optional meta data to add to the note. Key value pairs.
+	 * @return int                         Comment ID.
 	 */
 	public function add_order_note( $note, $is_customer_note = 0, $added_by_user = false, $meta_data = array() ) {
 		if ( ! $this->get_id() ) {
@@ -2365,20 +2204,6 @@ class WC_Order extends WC_Abstract_Order {
 		return $comment_id;
 	}

-	/**
-	 * Queue a note for the order in memory. The next save() adds it with add_order_note() after the write, so
-	 * the note sees the saved order and woocommerce_order_note_added fires after the write.
-	 *
-	 * @since 11.4.0
-	 * @param  string $note              Note to add.
-	 * @param  int    $is_customer_note  Is this a note for the customer?.
-	 * @param  bool   $added_by_user     Was the note added by a user?.
-	 * @param  array  $meta_data         Optional meta data to add to the note. Key value pairs.
-	 */
-	public function stage_order_note( $note, $is_customer_note = 0, $added_by_user = false, $meta_data = array() ): void {
-		$this->defer_to_save( uniqid( 'order_note_', true ), array( $this, 'add_order_note' ), array( $note, $is_customer_note, $added_by_user, $meta_data ), true );
-	}
-
 	/**
 	 * Add an order note for status transition
 	 *
diff --git a/plugins/woocommerce/includes/class-wc-webhook.php b/plugins/woocommerce/includes/class-wc-webhook.php
index ce5cd47b6e8..2b19fa197fa 100644
--- a/plugins/woocommerce/includes/class-wc-webhook.php
+++ b/plugins/woocommerce/includes/class-wc-webhook.php
@@ -46,14 +46,6 @@ class WC_Webhook extends WC_Legacy_Webhook {
 	 */
 	protected $enqueued_blog_id = 0;

-	/**
-	 * Whether stage_delivery_result() disabled the webhook since the last save. The next save() fires
-	 * woocommerce_webhook_disabled_due_delivery_failures after it writes.
-	 *
-	 * @var bool
-	 */
-	private $disabled_due_delivery_failures = false;
-
 	/**
 	 * Stores webhook data.
 	 *
@@ -671,85 +663,49 @@ class WC_Webhook extends WC_Legacy_Webhook {
 			);
 		}

-		$this->write_through(
-			function () use ( $response_code ) {
-				$this->stage_delivery_result( $response_code );
-			}
-		);
+		// Track failures.
+		// Check for a success, which is a 2xx, 301 or 302 Response Code.
+		if ( intval( $response_code ) >= 200 && intval( $response_code ) < 303 ) {
+			$this->set_failure_count( 0 );
+			// A successful delivery proves the delivery URL works, so it no longer needs a ping.
+			$this->set_pending_delivery( false );

-		if ( 0 !== $this->get_id() ) {
-			$this->save();
+			if ( 0 !== $this->get_id() ) {
+				$this->save();
+			}
+		} else {
+			$this->failed_delivery();
 		}
 	}

 	/**
-	 * Track the result of a delivery in memory. The next save() writes it. log_delivery() calls this method,
-	 * then save().
-	 *
-	 * A success, which is a 2xx, 301 or 302 response code, resets the failure count. A failure adds one to
-	 * the failure count, and disables the webhook after more than 5 consecutive failures. The next save()
-	 * fires woocommerce_webhook_disabled_due_delivery_failures after it writes. log_delivery() runs this
-	 * method through write_through(), so it fires the action right away, as it always did.
+	 * Track consecutive delivery failures and automatically disable the webhook.
+	 * if more than 5 consecutive failures occur. A failure is defined as a.
+	 * non-2xx response.
 	 *
-	 * @since 11.4.0
-	 * @param int|string $response_code Response code, or the error code of a failed request.
+	 * @since 2.2.0
+	 * @return void
 	 */
-	public function stage_delivery_result( $response_code ): void {
-		$this->refuse_unstaged_override( 'log_delivery', 'stage_delivery_result' );
-
-		if ( intval( $response_code ) >= 200 && intval( $response_code ) < 303 ) {
-			$this->set_failure_count( 0 );
-			// A successful delivery proves the delivery URL works, so it no longer needs a ping.
-			$this->set_pending_delivery( false );
-			return;
-		}
-
+	private function failed_delivery() {
 		$failures = $this->get_failure_count();

 		if ( $failures > apply_filters( 'woocommerce_max_webhook_delivery_failures', 5 ) ) {
 			$this->set_status( 'disabled' );

-			$this->disabled_due_delivery_failures = ! $this->writing_through;
-			if ( $this->writing_through ) {
-				$this->fire_disabled_due_delivery_failures();
-			}
+			/**
+			 * Fires when a webhook is disabled after too many consecutive failed deliveries.
+			 *
+			 * @param int $webhook_id Webhook ID.
+			 * @since 2.2.0
+			 */
+			do_action( 'woocommerce_webhook_disabled_due_delivery_failures', $this->get_id() );
 		} else {
 			$this->set_failure_count( ++$failures );
 		}
-	}

-	/**
-	 * Save the webhook, then fire woocommerce_webhook_disabled_due_delivery_failures when
-	 * stage_delivery_result() disabled it since the last save and it is still disabled.
-	 *
-	 * @since 11.4.0
-	 * @return int Webhook ID.
-	 */
-	public function save() {
-		$id = parent::save();
-
-		$disabled                             = $this->disabled_due_delivery_failures && 'disabled' === $this->get_status();
-		$this->disabled_due_delivery_failures = false;
-		if ( $disabled ) {
-			$this->fire_disabled_due_delivery_failures();
+		if ( 0 !== $this->get_id() ) {
+			$this->save();
 		}
-
-		return $id;
-	}
-
-	/**
-	 * Fire the action for a webhook that too many failed deliveries disabled.
-	 *
-	 * @since 11.4.0
-	 */
-	private function fire_disabled_due_delivery_failures(): void {
-		/**
-		 * Fires when a webhook is disabled after too many consecutive failed deliveries.
-		 *
-		 * @param int $webhook_id Webhook ID.
-		 * @since 2.2.0
-		 */
-		do_action( 'woocommerce_webhook_disabled_due_delivery_failures', $this->get_id() );
 	}

 	/**
diff --git a/plugins/woocommerce/phpcs.xml b/plugins/woocommerce/phpcs.xml
index 4a3cd5752dd..6398838d27e 100644
--- a/plugins/woocommerce/phpcs.xml
+++ b/plugins/woocommerce/phpcs.xml
@@ -26,8 +26,6 @@
 	<exclude-pattern>tests/e2e/bin/</exclude-pattern>
 	<!-- Custom PHPCS sniffs and their fixtures follow PHPCS naming/structure, not the WooCommerce ruleset. -->
 	<exclude-pattern>tests/Tools/phpcs/</exclude-pattern>
-	<!-- Fixture classes that the PHPStan rule tests analyse. -->
-	<exclude-pattern>tests/Tools/phpstan/data/</exclude-pattern>

 	<!-- Only check PHP files. -->
 	<arg name="extensions" value="php" />
diff --git a/plugins/woocommerce/phpstan-baseline.neon b/plugins/woocommerce/phpstan-baseline.neon
index c63e40f5008..48b0a120985 100644
--- a/plugins/woocommerce/phpstan-baseline.neon
+++ b/plugins/woocommerce/phpstan-baseline.neon
@@ -12637,7 +12637,7 @@ parameters:
 			path: includes/class-wc-order.php

 		-
-			message: '#^PHPDoc tag @param has invalid value \(WC_Order \$this                     Order object\.\)\: Unexpected token "\$this", expected variable at offset 189 on line 5$#'
+			message: '#^PHPDoc tag @param has invalid value \(WC_Order \$this                     Order object\.\)\: Unexpected token "\$this", expected variable at offset 193 on line 5$#'
 			identifier: phpDoc.parseError
 			count: 1
 			path: includes/class-wc-order.php
@@ -12649,7 +12649,7 @@ parameters:
 			path: includes/class-wc-order.php

 		-
-			message: '#^PHPDoc tag @param has invalid value \(WC_Order \$this          Order object\.\)\: Unexpected token "\$this", expected variable at offset 187 on line 6$#'
+			message: '#^PHPDoc tag @param has invalid value \(WC_Order \$this          Order object\.\)\: Unexpected token "\$this", expected variable at offset 197 on line 6$#'
 			identifier: phpDoc.parseError
 			count: 1
 			path: includes/class-wc-order.php
@@ -12702,11 +12702,6 @@ parameters:
 			count: 1
 			path: includes/class-wc-order.php

-		-
-			message: '#^Parameter \#2 \$is_customer_note of method WC_Order\:\:add_order_note\(\) expects int, false given\.$#'
-			identifier: argument.type
-			count: 4
-			path: includes/class-wc-order.php

 		-
 			message: '#^Parameter \#2 \$transition of method WC_Order\:\:add_status_transition_note\(\) expects bool, array given\.$#'
@@ -25370,11 +25365,6 @@ parameters:
 			count: 1
 			path: includes/rest-api/Controllers/Version2/class-wc-rest-orders-v2-controller.php

-		-
-			message: '#^Parameter \#2 \$is_customer_note of method WC_Order\:\:add_order_note\(\) expects int, false given\.$#'
-			identifier: argument.type
-			count: 1
-			path: includes/rest-api/Controllers/Version2/class-wc-rest-orders-v2-controller.php

 		-
 			message: '#^Property WC_REST_Orders_V2_Controller\:\:\$request \(array\) does not accept WP_REST_Request\.$#'
@@ -33605,11 +33595,6 @@ parameters:
 			count: 1
 			path: includes/wc-order-functions.php

-		-
-			message: '#^Parameter \#2 \$is_customer_note of method WC_Order\:\:add_order_note\(\) expects int, false given\.$#'
-			identifier: argument.type
-			count: 1
-			path: includes/wc-order-functions.php

 		-
 			message: '#^Parameter \#2 \$value of method WC_Data\:\:update_meta_data\(\) expects array\|string, \(float\|int\) given\.$#'
@@ -34211,11 +34196,6 @@ parameters:
 			count: 1
 			path: includes/wc-stock-functions.php

-		-
-			message: '#^Parameter \#2 \$is_customer_note of method WC_Order\:\:add_order_note\(\) expects int, false given\.$#'
-			identifier: argument.type
-			count: 1
-			path: includes/wc-stock-functions.php

 		-
 			message: '#^Parameter \#2 \$stock_quantity of function wc_update_product_stock expects int\|null, float\|int given\.$#'
@@ -51517,11 +51497,6 @@ parameters:
 			count: 1
 			path: src/Checkout/Helpers/ReserveStock.php

-		-
-			message: '#^Parameter \#2 \$is_customer_note of method WC_Order\:\:add_order_note\(\) expects int, false given\.$#'
-			identifier: argument.type
-			count: 1
-			path: src/Checkout/Helpers/ReserveStock.php

 		-
 			message: '#^Parameter \#2 \$stock_quantity of method Automattic\\WooCommerce\\Checkout\\Helpers\\ReserveStock\:\:reserve_stock_for_product\(\) expects int, float\|int given\.$#'
@@ -60928,11 +60903,6 @@ parameters:
 			count: 1
 			path: src/Internal/RestApi/Routes/V4/Orders/ActionController.php

-		-
-			message: '#^Parameter \#2 \$is_customer_note of method WC_Order\:\:add_order_note\(\) expects int, false given\.$#'
-			identifier: argument.type
-			count: 1
-			path: src/Internal/RestApi/Routes/V4/Orders/ActionController.php

 		-
 			message: '#^Cannot access property \$max_num_pages on array\|object\.$#'
@@ -61450,11 +61420,6 @@ parameters:
 			count: 4
 			path: src/Internal/RestApi/Routes/V4/Orders/UpdateUtils.php

-		-
-			message: '#^Parameter \#2 \$is_customer_note of method WC_Order\:\:add_order_note\(\) expects int, false given\.$#'
-			identifier: argument.type
-			count: 1
-			path: src/Internal/RestApi/Routes/V4/Orders/UpdateUtils.php

 		-
 			message: '#^Parameter \$item of method Automattic\\WooCommerce\\Internal\\RestApi\\Routes\\V4\\Orders\\UpdateUtils\:\:maybe_set_item_meta_data\(\) has invalid type Automattic\\WooCommerce\\Internal\\RestApi\\Routes\\V4\\Orders\\WC_Order_Item\.$#'
diff --git a/plugins/woocommerce/phpstan.neon b/plugins/woocommerce/phpstan.neon
index 5c6e8f8316b..9dd8735e055 100644
--- a/plugins/woocommerce/phpstan.neon
+++ b/plugins/woocommerce/phpstan.neon
@@ -16,7 +16,6 @@ parameters:
 		- includes/react-admin/feature-config.php (?)
 	bootstrapFiles:
 		- vendor/autoload.php
-		- tests/Tools/phpstan/StagedWriteRule.php
 		- tests/Tools/phpstan/AbilityClassRule.php
 		- tests/Tools/phpstan/AbilityRegistrationRule.php
 	scanDirectories:
@@ -46,55 +45,6 @@ parameters:
 		-
 			message: '#Call to an undefined static method Automattic\\WooCommerce\\StoreApi\\Schemas\\V1\\AbstractSchema::prepare_product_price_response\(\)#'
 			path: src/StoreApi/Utilities/ProductItemTrait.php
-		# Deprecated code; phpcs excludes this folder too.
-		-
-			identifier: woocommerce.stagedWrite
-			path: includes/legacy/*
-		# stage_order_note() only queues the note. The next save() calls add_order_note(), so an override of that method still runs.
-		-
-			identifier: woocommerce.stagedTwinRefusal
-			message: '#^Method WC_Order::stage_order_note\(\) must start with#'
-			path: includes/class-wc-order.php
-		# The save point that stage_*() methods share: it saves only while the saving method runs the stage method.
-		-
-			identifier: woocommerce.stagedWrite
-			message: '#^Method WC_Abstract_Order::save_if_writing_through\(\) writes outside save\(\)\.#'
-			path: includes/abstracts/abstract-wc-order.php
-		# add_product() saved the item before it added it to the order, and the item ID it returns needs that save. stage_product_item() saves the item only while add_product() runs it; otherwise save_items() writes it.
-		-
-			identifier: woocommerce.stagedWrite
-			message: '#^Method WC_Abstract_Order::stage_product_item\(\) writes outside save\(\)\.#'
-			path: includes/abstracts/abstract-wc-order.php
-		# Payment tokens live in a data store table apart from the order data, and the write takes no order change to stage.
-		-
-			identifier: woocommerce.stagedWrite
-			message: '#^Method WC_Abstract_Order::add_payment_token\(\) writes outside save\(\)\.#'
-			path: includes/abstracts/abstract-wc-order.php
-		# The one place that inserts a note row: save() runs add_order_note() for notes that stage_order_note() queued.
-		-
-			identifier: woocommerce.stagedWrite
-			message: '#^Method WC_Order::add_order_note\(\) writes outside save\(\)\.#'
-			path: includes/class-wc-order.php
-		# Usage counts change through atomic data store updates; a save would rewrite them from stale values.
-		-
-			identifier: woocommerce.stagedWrite
-			message: '#^Method WC_Coupon::(increase|decrease)_usage_count\(\) writes outside save\(\)\.#'
-			path: includes/class-wc-coupon.php
-		# Download counts change through an atomic SQL update; a save writes the whole row and would reopen the race the update avoids.
-		-
-			identifier: woocommerce.stagedWrite
-			message: '#^Method WC_Customer_Download::track_download\(\) writes outside save\(\)\.#'
-			path: includes/class-wc-customer-download.php
-		# A zone object does not hold its shipping methods; add_shipping_method() inserts the row and returns its ID. A twin needs the zone to carry its methods in memory and write them in save() first.
-		-
-			identifier: woocommerce.stagedWrite
-			message: '#^Method WC_Shipping_Zone::add_shipping_method\(\) writes outside save\(\)\.#'
-			path: includes/class-wc-shipping-zone.php
-		# The ping is an HTTP request to the delivery URL. It cannot wait for a later save(), so it has no stage_*() twin.
-		-
-			identifier: woocommerce.stagedWrite
-			message: '#^Method WC_Webhook::deliver_ping\(\) writes outside save\(\)\.#'
-			path: includes/class-wc-webhook.php
 		# WP_Ability::prepare_input() and sanitize_input() exist from WordPress 7.2, and Ability calls them only when they exist. Remove when WooCommerce requires WordPress 7.2.
 		-
 			identifier: staticMethod.notFound
@@ -109,10 +59,6 @@ parameters:
 		maximumNumberOfProcesses: 4

 services:
-	-
-		class: Automattic\WooCommerce\Testing\Tools\phpstan\StagedWriteRule
-		tags:
-			- phpstan.rules.rule
 	-
 		class: Automattic\WooCommerce\Testing\Tools\phpstan\AbilityClassRule
 		tags:
diff --git a/plugins/woocommerce/src/Abilities/ActionableAbility.php b/plugins/woocommerce/src/Abilities/ActionableAbility.php
index 43647c96675..b97674bebe2 100644
--- a/plugins/woocommerce/src/Abilities/ActionableAbility.php
+++ b/plugins/woocommerce/src/Abilities/ActionableAbility.php
@@ -150,6 +150,20 @@ abstract class ActionableAbility extends Ability {
 		return true;
 	}

+	/**
+	 * Whether the ability runs the extensible abilities steps. When it returns
+	 * false, the ability runs as with the feature off: no `extensions` input,
+	 * no field writes, no validators and no syncs.
+	 *
+	 * @internal
+	 * @since 11.4.0
+	 *
+	 * @return bool
+	 */
+	protected function is_extensible(): bool {
+		return true;
+	}
+
 	/**
 	 * The objects that save() deleted for good, for the syncs. An ability that
 	 * deletes objects collects them in save() and returns them here.
@@ -204,7 +218,7 @@ abstract class ActionableAbility extends Ability {
 			return $subject;
 		}

-		$enabled = ExtensibleAbilities::is_enabled();
+		$enabled = ExtensibleAbilities::is_enabled() && $this->is_extensible();
 		$writes  = $enabled && $this->writes_extension_fields();
 		$updates = $writes ? $this->prepare_fields( $input['extensions'] ?? array(), $this->get_resource() ) : array();
 		if ( is_wp_error( $updates ) ) {
@@ -515,7 +529,7 @@ abstract class ActionableAbility extends Ability {
 	 */
 	protected function prepare_properties( array $args ): array {
 		$args['execute_callback'] = array( $this, 'execute_change' );
-		if ( is_array( $args['input_schema'] ?? null ) && ExtensibleAbilities::is_enabled() && $this->writes_extension_fields() ) {
+		if ( is_array( $args['input_schema'] ?? null ) && ExtensibleAbilities::is_enabled() && $this->is_extensible() && $this->writes_extension_fields() ) {
 			$args['input_schema'] = $this->add_extensions_input_schema( $args['input_schema'] );
 		}
 		return parent::prepare_properties( $args );
diff --git a/plugins/woocommerce/src/Abilities/ExtensibleAbilities.php b/plugins/woocommerce/src/Abilities/ExtensibleAbilities.php
index 95aa3eb6755..f828eb62444 100644
--- a/plugins/woocommerce/src/Abilities/ExtensibleAbilities.php
+++ b/plugins/woocommerce/src/Abilities/ExtensibleAbilities.php
@@ -7,7 +7,6 @@ declare( strict_types=1 );

 namespace Automattic\WooCommerce\Abilities;

-use Automattic\WooCommerce\Internal\Utilities\StagedMethod;
 use Automattic\WooCommerce\Utilities\FeaturesUtil;
 use Automattic\WooCommerce\Utilities\OrderUtil;

@@ -604,24 +603,6 @@ class ExtensibleAbilities {
 		return array_values( array_unique( $valid ) );
 	}

-	/**
-	 * Refuse a direct call of a stage method when a class overrides its saving
-	 * method without overriding the stage method too, because staging would skip
-	 * the rules of that override. WC_Data classes use
-	 * WC_Data::refuse_unstaged_override(). Another class calls this method at the
-	 * start of its stage method, unless its saving method runs the stage method.
-	 *
-	 * @since 11.4.0
-	 *
-	 * @param object $subject      Object that gets the change.
-	 * @param string $method       Saving method, for example add_tracking_item.
-	 * @param string $stage_method Stage method, for example stage_tracking_item.
-	 * @throws \WC_Data_Exception When a class has not adopted the stage method.
-	 */
-	public static function refuse_unstaged_override( object $subject, string $method, string $stage_method ): void {
-		StagedMethod::refuse_unstaged( $subject, $method, $stage_method );
-	}
-
 	/**
 	 * Register a validator that can refuse a change to an object of a resource.
 	 *
@@ -634,12 +615,8 @@ class ExtensibleAbilities {
 	 * no extension fields. For example, a validator refuses a product change that
 	 * would break a subscription plan.
 	 *
-	 * Core's product abilities and order-update-status run validators. An order
-	 * validator sees the order with its new status staged, including the paid
-	 * and completed dates that the status sets. A stage_*() method refuses a class
-	 * that overrides its saving method without overriding the stage method too, so
-	 * the ability refuses that class while the feature is on. See
-	 * WC_Data::refuse_unstaged_override().
+	 * Core's product abilities and order-delete run validators. The other order
+	 * abilities of Core run none for now.
 	 *
 	 * @since 11.3.0
 	 *
@@ -1074,7 +1051,7 @@ class ExtensibleAbilities {
 	 * The schema of the `extensions` input of a resource. It lists the fields
 	 * that have an input schema, each as declared, and says
 	 * which object types a field with `object_types` applies to. ActionableAbility adds it to the input schema of every
-	 * ability. An ability that writes other objects of the resource in the same
+	 * ability that takes extensions. An ability that writes other objects of the resource in the same
 	 * call, such as the variations of a product, adds it to their input too.
 	 *
 	 * @since 11.4.0
diff --git a/plugins/woocommerce/src/Internal/Abilities/Domain/OrderCreate.php b/plugins/woocommerce/src/Internal/Abilities/Domain/OrderCreate.php
index 21b1ebcc197..85be72ae869 100644
--- a/plugins/woocommerce/src/Internal/Abilities/Domain/OrderCreate.php
+++ b/plugins/woocommerce/src/Internal/Abilities/Domain/OrderCreate.php
@@ -8,7 +8,6 @@ declare( strict_types=1 );
 namespace Automattic\WooCommerce\Internal\Abilities\Domain;

 use Automattic\WooCommerce\Abilities\ActionableAbility;
-use Automattic\WooCommerce\Abilities\ExtensibleAbilities;
 use Automattic\WooCommerce\Enums\OrderStatus;
 use Automattic\WooCommerce\Internal\Abilities\Domain\Traits\DomainAbilityHelpers;
 use Automattic\WooCommerce\Internal\Abilities\Domain\Traits\OrderAbilityTrait;
@@ -39,8 +38,7 @@ class OrderCreate extends ActionableAbility {
 	public const CREATED_VIA = 'ability';

 	/**
-	 * Status that the input sent, or the default status. With the feature off, save() applies it once the order
-	 * has an ID.
+	 * Status that the input sent, or the default status. save() applies it once the order has an ID.
 	 *
 	 * @var string
 	 */
@@ -99,6 +97,15 @@ class OrderCreate extends ActionableAbility {
 		return 'order';
 	}

+	/**
+	 * The ability writes no extension fields and runs no validators for now, with the feature on or off.
+	 *
+	 * @return bool
+	 */
+	protected function is_extensible(): bool {
+		return false;
+	}
+
 	/**
 	 * Build an order in memory with the store defaults that wc_create_order() sets.
 	 *
@@ -115,12 +122,11 @@ class OrderCreate extends ActionableAbility {
 	}

 	/**
-	 * Set the customer, addresses, payment method and lines in memory, then the status. Every refusal comes back in one error.
+	 * Set the customer, addresses, payment method and lines in memory. save() sets the status. Every refusal comes back in one error.
 	 *
 	 * @param \WC_Order $subject New order.
 	 * @param array     $input   Ability input.
 	 * @return null|\WP_Error
-	 * @throws \WC_Data_Exception When the order class has not adopted a stage method.
 	 */
 	public function change( $subject, array $input ) {
 		$this->reset_line_changes();
@@ -182,26 +188,17 @@ class OrderCreate extends ActionableAbility {
 			$this->stage_line_totals( $subject, ! empty( $input['line_items'] ) );
 		}

-		// Not a manual change, as in REST and wc_create_order(): a new order has no ID for woocommerce_order_edit_status.
-		if ( ExtensibleAbilities::is_enabled() && $subject->get_status() !== $this->status ) {
-			$subject->stage_status( $this->status );
-		}
-
 		return null;
 	}

 	/**
-	 * Save the order. With the feature off, the order saves as pending with its lines, is recalculated with the
-	 * methods that save, and then moves to its status with WC_Order::update_status(), which needs an order ID.
+	 * Save the order. The order saves as pending with its lines, is recalculated with the methods that save,
+	 * and then moves to its status with WC_Order::update_status(), which needs an order ID.
 	 *
 	 * @param \WC_Order $subject New order.
 	 * @return null|\WP_Error
 	 */
 	public function save( $subject ) {
-		if ( ExtensibleAbilities::is_enabled() ) {
-			return parent::save( $subject );
-		}
-
 		$added = $this->add_queued_products( $subject );
 		$saved = parent::save( $subject );
 		if ( is_wp_error( $saved ) ) {
diff --git a/plugins/woocommerce/src/Internal/Abilities/Domain/OrderUpdate.php b/plugins/woocommerce/src/Internal/Abilities/Domain/OrderUpdate.php
index aa2b94e359d..abd904c9bf5 100644
--- a/plugins/woocommerce/src/Internal/Abilities/Domain/OrderUpdate.php
+++ b/plugins/woocommerce/src/Internal/Abilities/Domain/OrderUpdate.php
@@ -20,7 +20,7 @@ defined( 'ABSPATH' ) || exit;
 /**
  * The WooCommerce order update ability. It runs the steps of ActionableAbility.
  * Every change stays in memory until save(), so a refusal from a later change
- * or from a validator saves nothing.
+ * saves nothing.
  */
 class OrderUpdate extends ActionableAbility {

@@ -82,6 +82,15 @@ class OrderUpdate extends ActionableAbility {
 		return 'order';
 	}

+	/**
+	 * The ability writes no extension fields and runs no validators for now, with the feature on or off.
+	 *
+	 * @return bool
+	 */
+	protected function is_extensible(): bool {
+		return false;
+	}
+
 	/**
 	 * Load the order to change.
 	 *
@@ -113,7 +122,6 @@ class OrderUpdate extends ActionableAbility {
 	 * @param \WC_Order $subject Order.
 	 * @param array     $input   Ability input.
 	 * @return null|\WP_Error
-	 * @throws \WC_Data_Exception When the order class has not adopted a stage method.
 	 */
 	public function change( $subject, array $input ) {
 		$this->removed_product_lines = array();
@@ -162,9 +170,8 @@ class OrderUpdate extends ActionableAbility {
 	}

 	/**
-	 * Save the order, recalculate it with the feature off, and change the product
-	 * stock of the changed lines in the same way as the order screen. Validators have already run, so a refused
-	 * change never reaches the stock. A removed line restores its stock before
+	 * Save the order, recalculate it, and change the product
+	 * stock of the changed lines in the same way as the order screen. A removed line restores its stock before
 	 * the save, because the save deletes the line that holds the reduced amount. After a successful save, one
 	 * order note lists the stock changes, in the same format as the order screen.
 	 *
@@ -237,15 +244,14 @@ class OrderUpdate extends ActionableAbility {
 	}

 	/**
-	 * Remove, change and add lines in memory, then recalculate the totals
-	 * without saving. Coupons apply again after a product is added, because
+	 * Remove and change lines in memory, and check the new lines. save() adds the new lines and
+	 * recalculates the totals. Coupons apply again after a product is added, because
 	 * they were applied before the new line existed. Every refused line comes
 	 * back in one error, and then nothing is recalculated.
 	 *
 	 * @param \WC_Order $order Order.
 	 * @param array     $input Ability input.
 	 * @return null|\WP_Error
-	 * @throws \WC_Data_Exception When the order class has not adopted a stage method.
 	 */
 	private function change_lines( \WC_Order $order, array $input ): ?\WP_Error {
 		$refused = new \WP_Error();
diff --git a/plugins/woocommerce/src/Internal/Abilities/Domain/OrderUpdateStatus.php b/plugins/woocommerce/src/Internal/Abilities/Domain/OrderUpdateStatus.php
index 07ba4c64446..cfbae873bcb 100644
--- a/plugins/woocommerce/src/Internal/Abilities/Domain/OrderUpdateStatus.php
+++ b/plugins/woocommerce/src/Internal/Abilities/Domain/OrderUpdateStatus.php
@@ -8,7 +8,6 @@ declare( strict_types=1 );
 namespace Automattic\WooCommerce\Internal\Abilities\Domain;

 use Automattic\WooCommerce\Abilities\ActionableAbility;
-use Automattic\WooCommerce\Abilities\ExtensibleAbilities;
 use Automattic\WooCommerce\Internal\Abilities\Domain\Traits\DomainAbilityHelpers;
 use Automattic\WooCommerce\Internal\Abilities\Domain\Traits\OrderAbilityTrait;

@@ -16,9 +15,7 @@ defined( 'ABSPATH' ) || exit;

 /**
  * The WooCommerce order update status ability. It runs the steps of
- * ActionableAbility. With the feature on, change() stages the status with
- * WC_Order::stage_status(), so validators see the new status before the save.
- * With the feature off, save() calls WC_Order::update_status() as before.
+ * ActionableAbility. change() calls WC_Order::update_status(), which also saves.
  */
 class OrderUpdateStatus extends ActionableAbility {

@@ -72,6 +69,15 @@ class OrderUpdateStatus extends ActionableAbility {
 		return 'order';
 	}

+	/**
+	 * The ability writes no extension fields and runs no validators for now, with the feature on or off.
+	 *
+	 * @return bool
+	 */
+	protected function is_extensible(): bool {
+		return false;
+	}
+
 	/**
 	 * Load the order to change.
 	 *
@@ -83,11 +89,8 @@ class OrderUpdateStatus extends ActionableAbility {
 	}

 	/**
-	 * Check the new status. With the feature on, stage it with
-	 * WC_Order::stage_status(), or refuse the change when the order class cannot
-	 * stage it. With the feature off, no field or validator runs before save(),
-	 * so this step changes the status with WC_Order::update_status(), which
-	 * also saves, and save() does nothing.
+	 * Check the new status, and change it with WC_Order::update_status(), which
+	 * also saves. No field or validator runs before the save, so save() does nothing.
 	 *
 	 * @param \WC_Order $subject Order.
 	 * @param array     $input   Ability input.
@@ -116,24 +119,17 @@ class OrderUpdateStatus extends ActionableAbility {
 			);
 		}

-		if ( ! ExtensibleAbilities::is_enabled() ) {
-			return self::update_status( $subject, $status, self::get_note( $input ) );
-		}
-
-		$subject->stage_status( $status, self::get_note( $input ), true );
-
-		return null;
+		return self::update_status( $subject, $status, self::get_note( $input ) );
 	}

 	/**
-	 * Save the order. With the feature off, change() already saved it through
-	 * WC_Order::update_status().
+	 * Save the order. change() already saved it through WC_Order::update_status().
 	 *
 	 * @param \WC_Order $subject Order.
 	 * @return null|\WP_Error
 	 */
 	public function save( $subject ) {
-		return ExtensibleAbilities::is_enabled() ? parent::save( $subject ) : null;
+		return null;
 	}

 	/**
diff --git a/plugins/woocommerce/src/Internal/Abilities/Domain/Traits/OrderEditTrait.php b/plugins/woocommerce/src/Internal/Abilities/Domain/Traits/OrderEditTrait.php
index be3e3d5c9d6..00fbc877d83 100644
--- a/plugins/woocommerce/src/Internal/Abilities/Domain/Traits/OrderEditTrait.php
+++ b/plugins/woocommerce/src/Internal/Abilities/Domain/Traits/OrderEditTrait.php
@@ -7,15 +7,15 @@ declare( strict_types=1 );

 namespace Automattic\WooCommerce\Internal\Abilities\Domain\Traits;

-use Automattic\WooCommerce\Abilities\ExtensibleAbilities;
 use Automattic\WooCommerce\Enums\ProductType;
 use Automattic\WooCommerce\Internal\Admin\Orders\ItemQuantityLimits;

 defined( 'ABSPATH' ) || exit;

 /**
- * Address and line rules of the abilities that write an order, as the order screen applies them. Every
- * change stays in memory until the ability saves. A class that uses this trait also uses OrderAbilityTrait.
+ * Address and line rules of the abilities that write an order, as the order screen applies them. The address
+ * and line changes stay in memory until the ability saves. The new product lines and the totals wait for the
+ * save, which uses the order methods that save. A class that uses this trait also uses OrderAbilityTrait.
  */
 trait OrderEditTrait {

@@ -31,15 +31,13 @@ trait OrderEditTrait {

 	/**
 	 * Whether recalculate_saved_order() recalculates with the methods that save, and which ones.
-	 * Only with the feature off, when no validator needs to see the new totals.
 	 *
 	 * @var string|null `coupons`, `totals` or null.
 	 */
 	private ?string $recalculate_after_save = null;

 	/**
-	 * Product lines for add_queued_products(), with the feature off. WC_Order::add_product() runs the rules of
-	 * an order class that has not adopted stage_product_item(), as order-update-status does with update_status().
+	 * Product lines for add_queued_products(), which adds them with WC_Order::add_product().
 	 *
 	 * @var array<int, array{0: \WC_Product, 1: int}>
 	 */
@@ -55,37 +53,20 @@ trait OrderEditTrait {
 	}

 	/**
-	 * Recalculate the totals in memory after the lines changed. Coupons apply again after a product is
-	 * added, because they were applied before the new line existed. With the feature off, the totals wait
-	 * for recalculate_saved_order(), which uses the methods that save.
+	 * Leave the totals for recalculate_saved_order() after the lines changed. Coupons apply again after a
+	 * product is added, because they were applied before the new line existed.
 	 *
 	 * @param \WC_Order $order         Order.
 	 * @param bool      $product_added Whether a product line was added.
-	 * @throws \WC_Data_Exception When the order class has not adopted a stage method.
 	 */
 	private function stage_line_totals( \WC_Order $order, bool $product_added ): void {
 		$recalculate_coupons = $product_added && ! empty( $order->get_items( 'coupon' ) );

-		if ( ! ExtensibleAbilities::is_enabled() ) {
-			$this->recalculate_after_save = $recalculate_coupons ? 'coupons' : 'totals';
-			return;
-		}
-
-		if ( $recalculate_coupons ) {
-			if ( $order->get_prices_include_tax() ) {
-				$order->stage_taxes();
-			}
-
-			$order->stage_recalculated_coupons();
-
-			return;
-		}
-
-		$order->stage_totals();
+		$this->recalculate_after_save = $recalculate_coupons ? 'coupons' : 'totals';
 	}

 	/**
-	 * Add the product lines that add_product_line() left for the save with the feature off.
+	 * Add the product lines that add_product_line() left for the save.
 	 * WC_Order::add_product() saves each line right away.
 	 *
 	 * @param \WC_Order $order Order.
@@ -245,13 +226,11 @@ trait OrderEditTrait {
 	}

 	/**
-	 * Add a product line in memory. With the feature off, the line waits for add_queued_products(), so an order
-	 * class that has not adopted stage_product_item() keeps working.
+	 * Check a new product line. The line waits for add_queued_products(), which adds it on save.
 	 *
 	 * @param \WC_Order $order Order.
 	 * @param array     $line  Product line input.
 	 * @return null|\WP_Error
-	 * @throws \WC_Data_Exception With the feature on, when the order class has not adopted stage_product_item().
 	 */
 	private function add_product_line( \WC_Order $order, array $line ): ?\WP_Error {
 		$product  = wc_get_product( $line['product_id'] );
@@ -281,12 +260,7 @@ trait OrderEditTrait {
 			return self::quantity_error( $exception );
 		}

-		if ( ! ExtensibleAbilities::is_enabled() ) {
-			$this->products_to_add[] = array( $product, $quantity );
-			return null;
-		}
-
-		$this->changed_product_lines[] = $order->stage_product_item( $product, $quantity, array( 'order' => $order ) );
+		$this->products_to_add[] = array( $product, $quantity );

 		return null;
 	}
diff --git a/plugins/woocommerce/src/Internal/StockNotifications/Notification.php b/plugins/woocommerce/src/Internal/StockNotifications/Notification.php
index 8c99f76f7bc..7d69f2a7cad 100644
--- a/plugins/woocommerce/src/Internal/StockNotifications/Notification.php
+++ b/plugins/woocommerce/src/Internal/StockNotifications/Notification.php
@@ -534,11 +534,8 @@ class Notification extends \WC_Data {
 	 * @return string The generated verification key.
 	 */
 	public function get_verification_key( bool $persist ): string {
-		$key = $this->write_through(
-			function () {
-				return $this->stage_verification_key();
-			}
-		);
+		$key = wp_generate_password( 20, false );
+		$this->update_meta_data( 'verification_action_key', time() . ':' . wp_fast_hash( $key ) );

 		if ( $persist ) {
 			$this->save();
@@ -547,21 +544,6 @@ class Notification extends \WC_Data {
 		return $key;
 	}

-	/**
-	 * Generate a verification key and set its hash in memory. The next save() writes it.
-	 *
-	 * @since 11.4.0
-	 * @return string The generated verification key.
-	 */
-	public function stage_verification_key(): string {
-		$this->refuse_unstaged_override( 'get_verification_key', 'stage_verification_key' );
-
-		$key = wp_generate_password( 20, false );
-		$this->update_meta_data( 'verification_action_key', time() . ':' . wp_fast_hash( $key ) );
-
-		return $key;
-	}
-
 	/**
 	 * Check if the given key is a valid unsubscribe key.
 	 *
@@ -583,11 +565,8 @@ class Notification extends \WC_Data {
 	 * @return string The generated unsubscribe key.
 	 */
 	public function get_unsubscribe_key( bool $persist ): string {
-		$key = $this->write_through(
-			function () {
-				return $this->stage_unsubscribe_key();
-			}
-		);
+		$key = wp_generate_password( 20, false );
+		$this->update_meta_data( 'unsubscribe_action_key', wp_fast_hash( $key ) );

 		if ( $persist ) {
 			$this->save();
@@ -623,19 +602,4 @@ class Notification extends \WC_Data {

 		return false;
 	}
-
-	/**
-	 * Generate an unsubscribe key and set its hash in memory. The next save() writes it.
-	 *
-	 * @since 11.4.0
-	 * @return string The generated unsubscribe key.
-	 */
-	public function stage_unsubscribe_key(): string {
-		$this->refuse_unstaged_override( 'get_unsubscribe_key', 'stage_unsubscribe_key' );
-
-		$key = wp_generate_password( 20, false );
-		$this->update_meta_data( 'unsubscribe_action_key', wp_fast_hash( $key ) );
-
-		return $key;
-	}
 }
diff --git a/plugins/woocommerce/src/Internal/Utilities/StagedMethod.php b/plugins/woocommerce/src/Internal/Utilities/StagedMethod.php
deleted file mode 100644
index 09ccf9ecff3..00000000000
--- a/plugins/woocommerce/src/Internal/Utilities/StagedMethod.php
+++ /dev/null
@@ -1,87 +0,0 @@
-<?php
-/**
- * StagedMethod class file.
- */
-
-declare( strict_types=1 );
-
-namespace Automattic\WooCommerce\Internal\Utilities;
-
-defined( 'ABSPATH' ) || exit;
-
-/**
- * A WC_Data method that sets and saves in one call, paired with the method that only stages the change in memory.
- * The first method runs the stage method through WC_Data::write_through(), then saves. For example: update_status()
- * and stage_status().
- *
- * A class that overrides the first method with rules of its own must override the stage method too, at the same
- * level. Otherwise a direct call of the stage method skips those rules, so the stage method refuses the class.
- * The class keeps working through the first method. A stage method starts with
- * WC_Data::refuse_unstaged_override(), and PHPStan reports one that does not. An override of a stage method must
- * call the parent's stage method, because that call runs the refusal.
- *
- * @internal
- * @since 11.4.0
- */
-final class StagedMethod {
-
-	/**
-	 * Name of the first class, from the object's class upward, that declares the method that sets and saves without
-	 * declaring the stage method. Null when the object's class can stage the change.
-	 *
-	 * @param object $subject      Object to change, for example an order.
-	 * @param string $method       Method that sets and saves, for example update_status.
-	 * @param string $stage_method Method that only stages the change, for example stage_status.
-	 * @return string|null
-	 */
-	public static function unstaged_class( object $subject, string $method, string $stage_method ): ?string {
-		$class_name = get_class( $subject );
-		while ( $class_name ) {
-			if ( self::declares( $class_name, $method ) && ! self::declares( $class_name, $stage_method ) ) {
-				return $class_name;
-			}
-			$class_name = get_parent_class( $class_name );
-		}
-
-		return null;
-	}
-
-	/**
-	 * Refuse a direct call of the stage method when the object's class overrides the saving method without
-	 * overriding the stage method too.
-	 *
-	 * @param object $subject      Object to change, for example an order.
-	 * @param string $method       Method that sets and saves, for example update_status.
-	 * @param string $stage_method Method that only stages the change, for example stage_status.
-	 * @throws \WC_Data_Exception When the class has not adopted the stage method.
-	 */
-	public static function refuse_unstaged( object $subject, string $method, string $stage_method ): void {
-		$class_name = self::unstaged_class( $subject, $method, $stage_method );
-		if ( null !== $class_name ) {
-			// phpcs:disable WordPress.Security.EscapeOutput.ExceptionNotEscaped -- A plain text message for a client, built from PHP names.
-			throw new \WC_Data_Exception(
-				'woocommerce_data_staging_unsupported',
-				sprintf(
-					/* translators: 1: PHP class name of the object, 2: method that the class overrides, 3: method that the class needs to override. */
-					__( 'This object does not support this change yet. The class %1$s overrides %2$s() and needs to override %3$s() too.', 'woocommerce' ),
-					$class_name,
-					$method,
-					$stage_method
-				),
-				400
-			);
-			// phpcs:enable WordPress.Security.EscapeOutput.ExceptionNotEscaped
-		}
-	}
-
-	/**
-	 * Whether the class itself declares the method, rather than inherits it.
-	 *
-	 * @param string $class_name Class name.
-	 * @param string $method     Method name.
-	 * @return bool
-	 */
-	private static function declares( string $class_name, string $method ): bool {
-		return method_exists( $class_name, $method ) && ( new \ReflectionMethod( $class_name, $method ) )->class === $class_name;
-	}
-}
diff --git a/plugins/woocommerce/tests/Tools/phpstan/StagedWriteRule.php b/plugins/woocommerce/tests/Tools/phpstan/StagedWriteRule.php
deleted file mode 100644
index 48a505e12cf..00000000000
--- a/plugins/woocommerce/tests/Tools/phpstan/StagedWriteRule.php
+++ /dev/null
@@ -1,208 +0,0 @@
-<?php
-/**
- * StagedWriteRule class file.
- *
- * @package WooCommerce\Tests
- */
-
-declare( strict_types=1 );
-
-namespace Automattic\WooCommerce\Testing\Tools\phpstan;
-
-use PhpParser\Node;
-use PhpParser\Node\Expr\Assign;
-use PhpParser\Node\Expr\FuncCall;
-use PhpParser\Node\Expr\MethodCall;
-use PhpParser\Node\Expr\PropertyFetch;
-use PhpParser\Node\Expr\StaticCall;
-use PhpParser\Node\Expr\Variable;
-use PhpParser\Node\Identifier;
-use PhpParser\Node\Name;
-use PhpParser\Node\Stmt\Expression;
-use PhpParser\NodeFinder;
-use PHPStan\Analyser\Scope;
-use PHPStan\Node\InClassMethodNode;
-use PHPStan\Reflection\ClassReflection;
-use PHPStan\Rules\Rule;
-use PHPStan\Rules\RuleErrorBuilder;
-
-/**
- * Reports a method of a WC_Data subclass that writes to the database outside save(), unless it also calls on $this
- * the stage_*() method whose refuse_unstaged_override() names it, which marks it as the saving twin of that stage
- * method. A stage_*() method never gets that exemption. Methods of the save pipeline, deletes, and methods that take a
- * lock, which must write at once, are exempt. Also reports a stage_*() method of a WC_Data subclass that does not start with
- * refuse_unstaged_override().
- *
- * @implements Rule<InClassMethodNode>
- */
-final class StagedWriteRule implements Rule {
-
-	private const ALLOWED_METHODS = array( 'save', 'create', 'update', 'read', 'apply_changes', 'save_items', 'save_meta_data', 'validate_props', 'before_data_store_save_or_update', 'after_data_store_save_or_update' );
-
-	private const LOCK_METHODS = array( 'hold_applied_coupons' );
-
-	private const DATA_STORE_WRITE_PREFIXES = array( 'update', 'delete', 'increase', 'decrease', 'set', 'sync', 'create', 'save' );
-
-	private const WRITE_FUNCTIONS = array( 'wp_insert_comment', 'wp_update_post', 'update_post_meta', 'wp_insert_post' );
-
-	private const WPDB_WRITE_METHODS = array( 'query', 'insert', 'update', 'delete', 'replace' );
-
-	/**
-	 * Node type this rule checks.
-	 *
-	 * @return string
-	 */
-	public function getNodeType(): string {
-		return InClassMethodNode::class;
-	}
-
-	/**
-	 * Report the method when it writes and calls no stage method.
-	 *
-	 * @param InClassMethodNode $node  Method node.
-	 * @param Scope             $scope Scope of the method.
-	 * @return list<\PHPStan\Rules\IdentifierRuleError>
-	 */
-	public function processNode( Node $node, Scope $scope ): array {
-		$class  = $node->getClassReflection();
-		$method = $node->getOriginalNode();
-
-		$name = $method->name->toLowerString();
-		if ( ! $class->isSubclassOf( 'WC_Data' ) || $method->isStatic() || null === $method->stmts || in_array( $name, self::ALLOWED_METHODS, true ) || in_array( $name, self::LOCK_METHODS, true ) || 0 === strpos( $name, 'delete' ) ) {
-			return array();
-		}
-
-		if ( 0 === strpos( $name, 'stage_' ) && ! self::starts_with_refusal( $method->stmts ) ) {
-			return array(
-				RuleErrorBuilder::message( sprintf( 'Method %s::%s() must start with $this->refuse_unstaged_override().', $class->getName(), $method->name->toString() ) )
-					->identifier( 'woocommerce.stagedTwinRefusal' )
-					->build(),
-			);
-		}
-
-		$finder      = new NodeFinder();
-		$data_stores = array();
-		foreach ( $finder->findInstanceOf( $method->stmts, Assign::class ) as $assign ) {
-			if ( $assign->var instanceof Variable && is_string( $assign->var->name ) && $assign->expr instanceof StaticCall
-				&& $assign->expr->class instanceof Name && 'WC_Data_Store' === $assign->expr->class->toString()
-				&& $assign->expr->name instanceof Identifier && 'load' === $assign->expr->name->toLowerString() ) {
-				$data_stores[] = $assign->var->name;
-			}
-		}
-
-		$writes     = false;
-		$calls_twin = false;
-		foreach ( $finder->find( $method->stmts, fn( Node $call ) => $call instanceof MethodCall || $call instanceof FuncCall ) as $call ) {
-			if ( $call instanceof FuncCall ) {
-				$writes = $writes || ( $call->name instanceof Name && in_array( $call->name->toLowerString(), self::WRITE_FUNCTIONS, true ) );
-				continue;
-			}
-
-			if ( ! $call instanceof MethodCall || ! $call->name instanceof Identifier ) {
-				continue;
-			}
-
-			$name       = $call->name->toLowerString();
-			$calls_twin = $calls_twin || ( self::is_variable( $call->var, 'this' ) && 0 === strpos( $name, 'stage_' ) && self::saving_method_of( $class, $name ) === $method->name->toLowerString() );
-
-			$on_data_store = ( $call->var instanceof PropertyFetch && self::is_variable( $call->var->var, 'this' ) && $call->var->name instanceof Identifier && 'data_store' === $call->var->name->toString() )
-				|| ( $call->var instanceof MethodCall && self::is_variable( $call->var->var, 'this' ) && $call->var->name instanceof Identifier && 'get_data_store' === $call->var->name->toLowerString() )
-				|| ( $call->var instanceof Variable && in_array( $call->var->name, $data_stores, true ) );
-
-			$writes = $writes
-				|| 'save' === $name
-				|| ( $on_data_store && self::starts_with_any( $name, self::DATA_STORE_WRITE_PREFIXES ) )
-				|| ( self::is_variable( $call->var, 'wpdb' ) && in_array( $name, self::WPDB_WRITE_METHODS, true ) );
-		}
-
-		if ( ! $writes || $calls_twin ) {
-			return array();
-		}
-
-		return array(
-			RuleErrorBuilder::message( sprintf( 'Method %s::%s() writes outside save(). Move the in-memory change to a stage_*() twin, call it here, then save. See WC_Order::stage_status().', $class->getName(), $method->name->toString() ) )
-				->identifier( 'woocommerce.stagedWrite' )
-				->build(),
-		);
-	}
-
-	/**
-	 * Whether the first statement calls refuse_unstaged_override() on $this.
-	 *
-	 * @param Node[] $stmts Statements of the method.
-	 * @return bool
-	 */
-	private static function starts_with_refusal( array $stmts ): bool {
-		$first = $stmts[0] ?? null;
-		if ( ! $first instanceof Expression || ! $first->expr instanceof MethodCall ) {
-			return false;
-		}
-
-		$call = $first->expr;
-		return self::is_variable( $call->var, 'this' ) && $call->name instanceof Identifier && 'refuse_unstaged_override' === $call->name->toString();
-	}
-
-	/**
-	 * Name of the saving method that the stage method names in its refuse_unstaged_override() call, in lower case.
-	 *
-	 * @param ClassReflection $class_reflection Class that calls the stage method.
-	 * @param string          $stage_method     Stage method name in lower case.
-	 * @return string|null
-	 */
-	private static function saving_method_of( ClassReflection $class_reflection, string $stage_method ): ?string {
-		if ( ! $class_reflection->hasNativeMethod( $stage_method ) ) {
-			return null;
-		}
-
-		$reflection = $class_reflection->getNativeMethod( $stage_method )->getDeclaringClass()->getNativeReflection()->getMethod( $stage_method );
-		$file       = $reflection->getFileName();
-		$lines      = false === $file ? false : file( $file );
-		if ( false === $lines || false === $reflection->getStartLine() || false === $reflection->getEndLine() ) {
-			return null;
-		}
-
-		$source = implode( '', array_slice( $lines, $reflection->getStartLine() - 1, $reflection->getEndLine() - $reflection->getStartLine() + 1 ) );
-		$tokens = array_values(
-			array_filter(
-				token_get_all( '<?php ' . $source ),
-				fn( $token ) => ! is_array( $token ) || ! in_array( $token[0], array( T_WHITESPACE, T_COMMENT, T_DOC_COMMENT ), true )
-			)
-		);
-
-		foreach ( $tokens as $i => $token ) {
-			if ( is_array( $token ) && T_STRING === $token[0] && 'refuse_unstaged_override' === $token[1] && '(' === ( $tokens[ $i + 1 ] ?? null ) ) {
-				$argument = $tokens[ $i + 2 ] ?? null;
-				return is_array( $argument ) && T_CONSTANT_ENCAPSED_STRING === $argument[0] ? strtolower( substr( $argument[1], 1, -1 ) ) : null;
-			}
-		}
-
-		return null;
-	}
-
-	/**
-	 * Whether the expression is the variable with the given name.
-	 *
-	 * @param Node   $expr Expression.
-	 * @param string $name Variable name without the dollar sign.
-	 * @return bool
-	 */
-	private static function is_variable( Node $expr, string $name ): bool {
-		return $expr instanceof Variable && $name === $expr->name;
-	}
-
-	/**
-	 * Whether the name starts with one of the prefixes.
-	 *
-	 * @param string   $name     Method name in lower case.
-	 * @param string[] $prefixes Prefixes.
-	 * @return bool
-	 */
-	private static function starts_with_any( string $name, array $prefixes ): bool {
-		foreach ( $prefixes as $prefix ) {
-			if ( 0 === strpos( $name, $prefix ) ) {
-				return true;
-			}
-		}
-		return false;
-	}
-}
diff --git a/plugins/woocommerce/tests/Tools/phpstan/StagedWriteRuleTest.php b/plugins/woocommerce/tests/Tools/phpstan/StagedWriteRuleTest.php
deleted file mode 100644
index e9f2c084f82..00000000000
--- a/plugins/woocommerce/tests/Tools/phpstan/StagedWriteRuleTest.php
+++ /dev/null
@@ -1,105 +0,0 @@
-<?php
-/**
- * StagedWriteRuleTest class file.
- *
- * @package WooCommerce\Tests
- */
-
-declare( strict_types=1 );
-
-namespace Automattic\WooCommerce\Testing\Tools\phpstan;
-
-use PHPStan\Rules\Rule;
-use PHPStan\Testing\RuleTestCase;
-
-/**
- * Tests for StagedWriteRule.
- *
- * @extends RuleTestCase<StagedWriteRule>
- */
-final class StagedWriteRuleTest extends RuleTestCase {
-
-	/**
-	 * Rule under test.
-	 *
-	 * @return StagedWriteRule
-	 */
-	protected function getRule(): Rule {
-		return new StagedWriteRule();
-	}
-
-	/**
-	 * @testdox A stage method that does not start with refuse_unstaged_override() is reported.
-	 */
-	public function test_stage_method_without_leading_refusal_is_reported(): void {
-		$this->assert_errors(
-			'stage-refusal.php',
-			array(
-				array( 'woocommerce.stagedTwinRefusal', 'Method Stage_Refusal_Fixture::stage_late() must start with $this->refuse_unstaged_override().', 9 ),
-				array( 'woocommerce.stagedTwinRefusal', 'Method Stage_Refusal_Fixture::stage_missing() must start with $this->refuse_unstaged_override().', 14 ),
-			)
-		);
-	}
-
-	/**
-	 * @testdox Each kind of write outside save() is reported, and a method that only reads is not.
-	 */
-	public function test_writes_outside_save_are_reported(): void {
-		$this->assert_errors(
-			'writes.php',
-			array(
-				array( 'woocommerce.stagedWrite', self::write_message( 'Writes_Fixture', 'through_data_store_property' ), 4 ),
-				array( 'woocommerce.stagedWrite', self::write_message( 'Writes_Fixture', 'through_loaded_data_store' ), 8 ),
-				array( 'woocommerce.stagedWrite', self::write_message( 'Writes_Fixture', 'through_get_data_store' ), 13 ),
-				array( 'woocommerce.stagedWrite', self::write_message( 'Writes_Fixture', 'through_wpdb' ), 17 ),
-				array( 'woocommerce.stagedWrite', self::write_message( 'Writes_Fixture', 'through_function' ), 22 ),
-				array( 'woocommerce.stagedWrite', self::write_message( 'Writes_Fixture', 'through_save' ), 26 ),
-			)
-		);
-	}
-
-	/**
-	 * @testdox A saving method that calls its own stage twin is not reported, and one that calls another twin is.
-	 */
-	public function test_only_the_named_twin_exempts_a_saving_method(): void {
-		$this->assert_errors(
-			'twins.php',
-			array(
-				array( 'woocommerce.stagedWrite', self::write_message( 'Twins_Fixture', 'add_note' ), 28 ),
-			)
-		);
-	}
-
-	/**
-	 * @testdox Save pipeline methods, deletes, lock methods, static methods and classes outside WC_Data are not reported.
-	 */
-	public function test_exempt_methods_and_classes_are_not_reported(): void {
-		$this->assert_errors( 'exempt.php', array() );
-	}
-
-	/**
-	 * Analyse a fixture and compare identifier, message and line of every error.
-	 *
-	 * @param string                          $fixture  Fixture file name in the data directory.
-	 * @param array<array{string,string,int}> $expected Expected errors in line order.
-	 */
-	private function assert_errors( string $fixture, array $expected ): void {
-		$errors = $this->gatherAnalyserErrors( array( __DIR__ . '/data/' . $fixture ) );
-
-		$actual = array_map( fn( $error ) => array( $error->getIdentifier(), $error->getMessage(), $error->getLine() ), $errors );
-		usort( $actual, fn( $a, $b ) => $a[2] <=> $b[2] );
-
-		$this->assertSame( $expected, $actual );
-	}
-
-	/**
-	 * Message of a woocommerce.stagedWrite error.
-	 *
-	 * @param string $class_name  Class name.
-	 * @param string $method_name Method name.
-	 * @return string
-	 */
-	private static function write_message( string $class_name, string $method_name ): string {
-		return sprintf( 'Method %s::%s() writes outside save(). Move the in-memory change to a stage_*() twin, call it here, then save. See WC_Order::stage_status().', $class_name, $method_name );
-	}
-}
diff --git a/plugins/woocommerce/tests/Tools/phpstan/bootstrap.php b/plugins/woocommerce/tests/Tools/phpstan/bootstrap.php
deleted file mode 100644
index 86b3eb82a2c..00000000000
--- a/plugins/woocommerce/tests/Tools/phpstan/bootstrap.php
+++ /dev/null
@@ -1,28 +0,0 @@
-<?php
-/**
- * Bootstrap for the PHPStan rule tests. PHPStan reflects test fixtures only through registered autoloaders.
- *
- * @package WooCommerce\Tests
- */
-
-declare( strict_types=1 );
-
-require_once __DIR__ . '/../../../vendor/autoload.php';
-
-spl_autoload_register(
-	function ( string $class_name ): void {
-		$files = array(
-			'WC_Data'               => 'stubs.php',
-			'WC_Data_Store'         => 'stubs.php',
-			'Stage_Refusal_Fixture' => 'stage-refusal.php',
-			'Writes_Fixture'        => 'writes.php',
-			'Twins_Fixture'         => 'twins.php',
-			'Exempt_Fixture'        => 'exempt.php',
-			'Not_WC_Data_Fixture'   => 'exempt.php',
-		);
-
-		if ( isset( $files[ $class_name ] ) ) {
-			require_once __DIR__ . '/data/' . $files[ $class_name ];
-		}
-	}
-);
diff --git a/plugins/woocommerce/tests/Tools/phpstan/data/exempt.php b/plugins/woocommerce/tests/Tools/phpstan/data/exempt.php
deleted file mode 100644
index b1935281059..00000000000
--- a/plugins/woocommerce/tests/Tools/phpstan/data/exempt.php
+++ /dev/null
@@ -1,56 +0,0 @@
-<?php
-
-class Exempt_Fixture extends WC_Data {
-	public function save() {
-		$this->data_store->update( $this );
-	}
-
-	public function create() {
-		$this->data_store->create( $this );
-	}
-
-	public function update() {
-		$this->data_store->update( $this );
-	}
-
-	public function save_items() {
-		$this->data_store->save_items( $this );
-	}
-
-	public function save_meta_data() {
-		$this->data_store->update_meta( $this );
-	}
-
-	public function apply_changes() {
-		$this->save();
-	}
-
-	public function delete( $force = false ) {
-		$this->data_store->delete( $this );
-	}
-
-	public function delete_meta_data_value( $key ) {
-		$this->data_store->delete_meta( $this, $key );
-	}
-
-	public function hold_applied_coupons() {
-		$this->data_store->update_usage( $this );
-	}
-
-	public static function save_static() {
-		WC_Data_Store::load( 'order' )->update_all();
-	}
-}
-
-class Not_WC_Data_Fixture {
-	private $data_store;
-
-	public function update_status() {
-		$this->data_store->update_status( $this );
-		wp_update_post( array( 'ID' => 1 ) );
-	}
-
-	public function stage_status() {
-		$this->status = 'done';
-	}
-}
diff --git a/plugins/woocommerce/tests/Tools/phpstan/data/stage-refusal.php b/plugins/woocommerce/tests/Tools/phpstan/data/stage-refusal.php
deleted file mode 100644
index 22e0ddb44e1..00000000000
--- a/plugins/woocommerce/tests/Tools/phpstan/data/stage-refusal.php
+++ /dev/null
@@ -1,17 +0,0 @@
-<?php
-
-class Stage_Refusal_Fixture extends WC_Data {
-	public function stage_good() {
-		$this->refuse_unstaged_override( 'good', 'stage_good' );
-		$this->data['good'] = true;
-	}
-
-	public function stage_late() {
-		$this->data['late'] = true;
-		$this->refuse_unstaged_override( 'late', 'stage_late' );
-	}
-
-	public function stage_missing() {
-		$this->data['missing'] = true;
-	}
-}
diff --git a/plugins/woocommerce/tests/Tools/phpstan/data/stubs.php b/plugins/woocommerce/tests/Tools/phpstan/data/stubs.php
deleted file mode 100644
index d2ca4b948d2..00000000000
--- a/plugins/woocommerce/tests/Tools/phpstan/data/stubs.php
+++ /dev/null
@@ -1,19 +0,0 @@
-<?php
-
-class WC_Data {
-	protected $data_store;
-
-	public function save() {}
-
-	public function get_data_store() {
-		return $this->data_store;
-	}
-
-	protected function refuse_unstaged_override( string $method, string $stage_method ): void {}
-}
-
-class WC_Data_Store {
-	public static function load( string $type ) {
-		return new self();
-	}
-}
diff --git a/plugins/woocommerce/tests/Tools/phpstan/data/twins.php b/plugins/woocommerce/tests/Tools/phpstan/data/twins.php
deleted file mode 100644
index 9a2e4370ba9..00000000000
--- a/plugins/woocommerce/tests/Tools/phpstan/data/twins.php
+++ /dev/null
@@ -1,32 +0,0 @@
-<?php
-
-class Twins_Fixture extends WC_Data {
-	public function stage_status( $status ) {
-		$this->refuse_unstaged_override( 'update_status', 'stage_status' );
-		$this->data['status'] = $status;
-	}
-
-	public function stage_paid() {
-		$this->refuse_unstaged_override( 'mark_paid', 'stage_paid' );
-		$this->data['paid'] = true;
-	}
-
-	public function update_status( $status ) {
-		$this->write_through(
-			function () use ( $status ) {
-				return $this->stage_status( $status );
-			}
-		);
-		$this->save();
-	}
-
-	public function mark_paid() {
-		$this->stage_paid();
-		$this->save();
-	}
-
-	public function add_note( $note ) {
-		$this->stage_status( 'noted' );
-		$this->save();
-	}
-}
diff --git a/plugins/woocommerce/tests/Tools/phpstan/data/writes.php b/plugins/woocommerce/tests/Tools/phpstan/data/writes.php
deleted file mode 100644
index 86a85001188..00000000000
--- a/plugins/woocommerce/tests/Tools/phpstan/data/writes.php
+++ /dev/null
@@ -1,35 +0,0 @@
-<?php
-
-class Writes_Fixture extends WC_Data {
-	public function through_data_store_property() {
-		$this->data_store->update_status( $this );
-	}
-
-	public function through_loaded_data_store() {
-		$store = WC_Data_Store::load( 'order' );
-		$store->increase_count( $this );
-	}
-
-	public function through_get_data_store() {
-		$this->get_data_store()->set_flag( $this, true );
-	}
-
-	public function through_wpdb() {
-		global $wpdb;
-		$wpdb->query( 'UPDATE wp_posts SET post_status = 1' );
-	}
-
-	public function through_function() {
-		wp_update_post( array( 'ID' => 1 ) );
-	}
-
-	public function through_save() {
-		$this->set_prop( 'flag', true );
-		$this->save();
-	}
-
-	public function reads_only() {
-		$this->data_store->read_meta( $this );
-		return $this->get_data_store()->get_flag( $this );
-	}
-}
diff --git a/plugins/woocommerce/tests/Tools/phpstan/phpunit.xml b/plugins/woocommerce/tests/Tools/phpstan/phpunit.xml
deleted file mode 100644
index e9211befcb4..00000000000
--- a/plugins/woocommerce/tests/Tools/phpstan/phpunit.xml
+++ /dev/null
@@ -1,11 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
-	bootstrap="bootstrap.php"
-	colors="true"
-	xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/9.3/phpunit.xsd">
-	<testsuites>
-		<testsuite name="phpstan-rules">
-			<directory suffix="Test.php">.</directory>
-		</testsuite>
-	</testsuites>
-</phpunit>
diff --git a/plugins/woocommerce/tests/legacy/unit-tests/discounts/discounts.php b/plugins/woocommerce/tests/legacy/unit-tests/discounts/discounts.php
index 8819485adf9..8941a5e0461 100644
--- a/plugins/woocommerce/tests/legacy/unit-tests/discounts/discounts.php
+++ b/plugins/woocommerce/tests/legacy/unit-tests/discounts/discounts.php
@@ -1733,8 +1733,12 @@ class WC_Tests_Discounts extends WC_Unit_Test_Case {
 	public function test_set_items_from_order_keeps_unsaved_lines() {
 		$product = WC_Helper_Product::create_simple_product();
 		$order   = wc_create_order();
-		$order->stage_product_item( $product, 1 );
-		$order->stage_product_item( $product, 2 );
+		foreach ( array( 1, 2 ) as $quantity ) {
+			$item = new WC_Order_Item_Product();
+			$item->set_product( $product );
+			$item->set_quantity( $quantity );
+			$order->add_item( $item );
+		}

 		$discounts = new WC_Discounts( $order );

diff --git a/plugins/woocommerce/tests/legacy/unit-tests/order/class-wc-tests-crud-orders.php b/plugins/woocommerce/tests/legacy/unit-tests/order/class-wc-tests-crud-orders.php
index 5658c14d6cb..d197709fcb0 100644
--- a/plugins/woocommerce/tests/legacy/unit-tests/order/class-wc-tests-crud-orders.php
+++ b/plugins/woocommerce/tests/legacy/unit-tests/order/class-wc-tests-crud-orders.php
@@ -7,7 +7,6 @@

 use Automattic\WooCommerce\Enums\OrderStatus;
 use Automattic\WooCommerce\Enums\ProductTaxStatus;
-use Automattic\WooCommerce\Internal\Utilities\StagedMethod;
 use Automattic\WooCommerce\Utilities\OrderUtil;
 use Automattic\WooCommerce\Testing\Tools\CodeHacking\Hacks\FunctionsMockerHack;

@@ -1083,1220 +1082,6 @@ class WC_Tests_CRUD_Orders extends WC_Unit_Test_Case {
 		$this->assertEquals( OrderStatus::ON_HOLD, $object->get_status() );
 	}

-	/**
-	 * Test: woocommerce_order_edit_status fires once for a manual change. set_status fires it right away, stage_status on the next save.
-	 */
-	public function test_edit_status_action_fires_once_for_a_manual_change() {
-		$object = new WC_Order();
-		$object->save();
-		$fired = did_action( 'woocommerce_order_edit_status' );
-
-		$this->assertTrue( $object->update_status( OrderStatus::ON_HOLD, '', true ) );
-		$this->assertSame( 1, did_action( 'woocommerce_order_edit_status' ) - $fired );
-		$this->assertSame( OrderStatus::ON_HOLD, wc_get_order( $object->get_id() )->get_status() );
-
-		$object->set_status( OrderStatus::PROCESSING, '', true );
-		$this->assertSame( 2, did_action( 'woocommerce_order_edit_status' ) - $fired );
-		$object->save();
-
-		$object->stage_status( OrderStatus::COMPLETED, '', true );
-		$this->assertSame( 2, did_action( 'woocommerce_order_edit_status' ) - $fired );
-		$object->save();
-		$this->assertSame( 3, did_action( 'woocommerce_order_edit_status' ) - $fired );
-		$this->assertSame( OrderStatus::COMPLETED, wc_get_order( $object->get_id() )->get_status() );
-	}
-
-	/**
-	 * Test: two stage_status calls before one save fire woocommerce_order_edit_status once, with the last status, and set_status after stage_status fires it once.
-	 */
-	public function test_edit_status_action_fires_once_for_the_last_staged_status() {
-		$statuses = array();
-		$listener = static function ( $order_id, $status ) use ( &$statuses ) {
-			$statuses[] = $status;
-		};
-		add_action( 'woocommerce_order_edit_status', $listener, 10, 2 );
-
-		$object = new WC_Order();
-		$object->save();
-		$object->stage_status( OrderStatus::ON_HOLD, '', true );
-		$object->stage_status( OrderStatus::PROCESSING, '', true );
-		$object->save();
-
-		$object->stage_status( OrderStatus::ON_HOLD, '', true );
-		$object->set_status( OrderStatus::COMPLETED, '', true );
-		$object->save();
-
-		remove_action( 'woocommerce_order_edit_status', $listener, 10 );
-		$this->assertSame( array( OrderStatus::PROCESSING, OrderStatus::COMPLETED ), $statuses );
-		$this->assertSame( OrderStatus::COMPLETED, wc_get_order( $object->get_id() )->get_status() );
-	}
-
-	/**
-	 * Test: a non-manual status change after stage_status cancels the pending woocommerce_order_edit_status, and a repeat of the staged status keeps it.
-	 */
-	public function test_edit_status_action_follows_the_last_status_change() {
-		$statuses = array();
-		$listener = static function ( $order_id, $status ) use ( &$statuses ) {
-			$statuses[] = $status;
-		};
-		add_action( 'woocommerce_order_edit_status', $listener, 10, 2 );
-
-		$object = new WC_Order();
-		$object->save();
-		$object->stage_status( OrderStatus::COMPLETED, '', true );
-		$object->set_status( OrderStatus::ON_HOLD );
-		$object->save();
-		$persisted = wc_get_order( $object->get_id() )->get_status();
-		$canceled  = $statuses;
-
-		$object->stage_status( OrderStatus::PROCESSING, '', true );
-		$object->stage_status( OrderStatus::COMPLETED );
-		$object->save();
-		$canceled_by_stage = $statuses;
-
-		$object->stage_status( OrderStatus::ON_HOLD, '', true );
-		$object->set_status( OrderStatus::ON_HOLD );
-		$object->save();
-
-		remove_action( 'woocommerce_order_edit_status', $listener, 10 );
-		$this->assertSame( OrderStatus::ON_HOLD, $persisted );
-		$this->assertEmpty( $canceled );
-		$this->assertEmpty( $canceled_by_stage );
-		$this->assertSame( array( OrderStatus::ON_HOLD ), $statuses );
-	}
-
-	/**
-	 * Test: stage_payment_complete changes the order in memory, and the next save writes it, adds the note and fires woocommerce_payment_complete.
-	 */
-	public function test_stage_payment_complete_changes_the_order_in_memory_only() {
-		$object = new WC_Order();
-		$object->save();
-		$fired = did_action( 'woocommerce_payment_complete' );
-		$pre   = did_action( 'woocommerce_pre_payment_complete' );
-		$notes = count( wc_get_order_notes( array( 'order_id' => $object->get_id() ) ) );
-		WC()->session->set( 'order_awaiting_payment', $object->get_id() );
-
-		$this->assertTrue( $object->stage_payment_complete( '12345' ) );
-		$this->assertSame( 0, did_action( 'woocommerce_pre_payment_complete' ) - $pre );
-		$this->assertSame( $object->get_id(), WC()->session->get( 'order_awaiting_payment' ) );
-		$this->assertSame( OrderStatus::COMPLETED, $object->get_status() );
-		$this->assertSame( '12345', $object->get_transaction_id() );
-		$this->assertNotNull( $object->get_date_paid( 'edit' ) );
-
-		$stored = wc_get_order( $object->get_id() );
-		$this->assertSame( OrderStatus::PENDING, $stored->get_status() );
-		$this->assertSame( '', $stored->get_transaction_id() );
-		$this->assertSame( 0, did_action( 'woocommerce_payment_complete' ) - $fired );
-		$this->assertCount( $notes, wc_get_order_notes( array( 'order_id' => $object->get_id() ) ) );
-
-		$object->save();
-		$this->assertSame( 1, did_action( 'woocommerce_pre_payment_complete' ) - $pre );
-		$this->assertFalse( WC()->session->get( 'order_awaiting_payment' ) );
-		$this->assertSame( OrderStatus::COMPLETED, wc_get_order( $object->get_id() )->get_status() );
-		$this->assertSame( 1, did_action( 'woocommerce_payment_complete' ) - $fired );
-		// Count the payment note only: the status change can also send emails, which add notes of their own.
-		$payment_notes = array_filter(
-			wc_get_order_notes( array( 'order_id' => $object->get_id() ) ),
-			fn( $note ) => 'Payment complete.' === $note->content
-		);
-		$this->assertCount( 1, $payment_notes );
-
-		$object->save();
-		$this->assertSame( 1, did_action( 'woocommerce_payment_complete' ) - $fired );
-	}
-
-	/**
-	 * Test: stage_payment_complete leaves nothing to the next save when the order status is not one that payment can complete.
-	 */
-	public function test_stage_payment_complete_leaves_nothing_to_save_for_a_status_payment_cannot_complete() {
-		$object = new WC_Order();
-		$object->set_status( OrderStatus::COMPLETED );
-		$object->save();
-		$pre = did_action( 'woocommerce_pre_payment_complete' );
-		WC()->session->set( 'order_awaiting_payment', $object->get_id() );
-
-		$this->assertFalse( $object->stage_payment_complete( '12345' ) );
-		$object->save();
-
-		$this->assertSame( 0, did_action( 'woocommerce_pre_payment_complete' ) - $pre );
-		$this->assertSame( $object->get_id(), WC()->session->get( 'order_awaiting_payment' ) );
-	}
-
-	/**
-	 * Test: a second stage_payment_complete that the status refuses keeps the pre-payment hook that the first one left to the save.
-	 */
-	public function test_refused_second_stage_payment_complete_keeps_the_staged_pre_payment_hook() {
-		$object = new WC_Order();
-		$object->save();
-		$pre   = did_action( 'woocommerce_pre_payment_complete' );
-		$fired = did_action( 'woocommerce_payment_complete' );
-		WC()->session->set( 'order_awaiting_payment', $object->get_id() );
-
-		$this->assertTrue( $object->stage_payment_complete( '12345' ) );
-		$this->assertFalse( $object->stage_payment_complete( '67890' ) );
-		$object->save();
-
-		$this->assertSame( 1, did_action( 'woocommerce_pre_payment_complete' ) - $pre );
-		$this->assertSame( 1, did_action( 'woocommerce_payment_complete' ) - $fired );
-		$this->assertFalse( WC()->session->get( 'order_awaiting_payment' ) );
-	}
-
-	/**
-	 * Test: payment_complete after stage_payment_complete replaces the staged pre-payment hook, so the hook fires once.
-	 */
-	public function test_payment_complete_after_stage_payment_complete_fires_the_pre_payment_hook_once() {
-		$object = new WC_Order();
-		$object->save();
-		$pre = did_action( 'woocommerce_pre_payment_complete' );
-
-		$this->assertTrue( $object->stage_payment_complete( '12345' ) );
-		$object->payment_complete( '67890' );
-		$object->save();
-
-		$this->assertSame( 1, did_action( 'woocommerce_pre_payment_complete' ) - $pre );
-	}
-
-	/**
-	 * Test: stage_payment_complete does not change an order that is not saved yet.
-	 */
-	public function test_stage_payment_complete_refuses_an_unsaved_order() {
-		$object = new WC_Order();
-		$fired  = did_action( 'woocommerce_payment_complete' );
-
-		$this->assertFalse( $object->stage_payment_complete( '12345' ) );
-		$object->save();
-
-		$this->assertSame( 0, did_action( 'woocommerce_payment_complete' ) - $fired );
-		$this->assertNull( wc_get_order( $object->get_id() )->get_date_paid( 'edit' ) );
-	}
-
-	/**
-	 * Test: payment_complete fires woocommerce_payment_complete once, after the write, and does not save an order whose status payment cannot complete.
-	 */
-	public function test_payment_complete_fires_its_action_after_the_write() {
-		$statuses = array();
-		$listener = static function ( $order_id, $transaction_id ) use ( &$statuses ) {
-			$statuses[] = array( wc_get_order( $order_id )->get_status(), $transaction_id );
-		};
-		add_action( 'woocommerce_payment_complete', $listener, 10, 2 );
-
-		$object = new WC_Order();
-		$object->save();
-		$this->assertTrue( $object->payment_complete( '12345' ) );
-
-		$updates = did_action( 'woocommerce_update_order' );
-		$skipped = did_action( 'woocommerce_payment_complete_order_status_completed' );
-		$this->assertTrue( $object->payment_complete( '67890' ) );
-
-		remove_action( 'woocommerce_payment_complete', $listener, 10 );
-		$this->assertSame( array( array( OrderStatus::COMPLETED, '12345' ) ), $statuses );
-		$this->assertSame( 1, did_action( 'woocommerce_payment_complete_order_status_completed' ) - $skipped );
-		$this->assertSame( $updates, did_action( 'woocommerce_update_order' ) );
-		$this->assertSame( '12345', wc_get_order( $object->get_id() )->get_transaction_id() );
-	}
-
-	/**
-	 * Test: stage_product_item adds an unsaved line item to the order, and the next save writes it.
-	 */
-	public function test_stage_product_item_adds_an_unsaved_item() {
-		$product = WC_Helper_Product::create_simple_product();
-		$object  = new WC_Order();
-		$object->save();
-
-		$item = $object->stage_product_item( $product, 2 );
-		$this->assertInstanceOf( WC_Order_Item_Product::class, $item );
-		$this->assertSame( 0, $item->get_id() );
-		$this->assertSame( 2, $item->get_quantity() );
-		$this->assertSame( array( $item ), array_values( $object->get_items() ) );
-		$this->assertCount( 0, wc_get_order( $object->get_id() )->get_items() );
-
-		$object->save();
-		$this->assertGreaterThan( 0, $item->get_id() );
-		$this->assertSame( array( $item->get_id() ), array_keys( wc_get_order( $object->get_id() )->get_items() ) );
-	}
-
-	/**
-	 * Test: add_product saves the item right away and keys it by its ID, as before.
-	 */
-	public function test_add_product_saves_the_item() {
-		$product = WC_Helper_Product::create_simple_product();
-		$object  = new WC_Order();
-		$object->save();
-
-		$item_id = $object->add_product( $product, 3 );
-		$this->assertGreaterThan( 0, $item_id );
-		$this->assertSame( array( $item_id ), array_keys( $object->get_items() ) );
-		$this->assertSame( array( $item_id ), array_keys( wc_get_order( $object->get_id() )->get_items() ) );
-		$this->assertSame( 3, $object->get_item( $item_id )->get_quantity() );
-	}
-
-	/**
-	 * Test: stage_order_note saves nothing until save, then exactly one note exists.
-	 */
-	public function test_stage_order_note_adds_the_note_on_save() {
-		$order = new WC_Order();
-		$order->save();
-		$notes = count( wc_get_order_notes( array( 'order_id' => $order->get_id() ) ) );
-
-		$order->stage_order_note( 'Staged note.' );
-		$this->assertCount( $notes, wc_get_order_notes( array( 'order_id' => $order->get_id() ) ) );
-
-		$order->save();
-		$found = wc_get_order_notes( array( 'order_id' => $order->get_id() ) );
-		$this->assertCount( $notes + 1, $found );
-		$this->assertSame( 'Staged note.', current( $found )->content );
-
-		$order->save();
-		$this->assertCount( $notes + 1, wc_get_order_notes( array( 'order_id' => $order->get_id() ) ) );
-	}
-
-	/**
-	 * Save the order while a listener makes the write fail.
-	 *
-	 * @param WC_Order $order Order to save.
-	 */
-	private function save_with_failed_write( WC_Order $order ): void {
-		$this->with_failed_writes(
-			static function () use ( $order ) {
-				$order->save();
-			}
-		);
-		$this->assertInstanceOf( Exception::class, $order->get_last_save_error() );
-	}
-
-	/**
-	 * @testdox A staged coupon is counted once when a save after a failed write succeeds.
-	 */
-	public function test_staged_coupon_is_counted_after_a_failed_write_is_retried(): void {
-		$order = WC_Helper_Order::create_order();
-		$this->create_fixed_cart_coupon( 'staged-retry' );
-
-		$order->stage_coupon( 'staged-retry' );
-		$this->save_with_failed_write( $order );
-		$this->assertSame( 0, ( new WC_Coupon( 'staged-retry' ) )->get_usage_count() );
-
-		$order->save();
-		$order->save();
-		$this->assertSame( 1, ( new WC_Coupon( 'staged-retry' ) )->get_usage_count() );
-	}
-
-	/**
-	 * @testdox A staged note is added once when a save after a failed write succeeds.
-	 */
-	public function test_staged_order_note_is_added_after_a_failed_write_is_retried(): void {
-		$order = new WC_Order();
-		$order->save();
-
-		$order->stage_order_note( 'Staged note.' );
-		$this->save_with_failed_write( $order );
-		$order->save();
-		$order->save();
-
-		$found = array_filter(
-			wc_get_order_notes( array( 'order_id' => $order->get_id() ) ),
-			static function ( $note ) {
-				return 'Staged note.' === $note->content;
-			}
-		);
-		$this->assertCount( 1, $found );
-	}
-
-	/**
-	 * @testdox A staged payment fires woocommerce_payment_complete once, when a save after a failed write succeeds.
-	 */
-	public function test_staged_payment_complete_fires_after_a_failed_write_is_retried(): void {
-		$order = new WC_Order();
-		$order->save();
-		$fired = did_action( 'woocommerce_payment_complete' );
-
-		$this->assertTrue( $order->stage_payment_complete( '12345' ) );
-		$this->save_with_failed_write( $order );
-		$this->assertSame( 0, did_action( 'woocommerce_payment_complete' ) - $fired );
-
-		$order->save();
-		$order->save();
-		$this->assertSame( 1, did_action( 'woocommerce_payment_complete' ) - $fired );
-	}
-
-	/**
-	 * @testdox A status change fires its hooks once, when a save after a failed write succeeds.
-	 */
-	public function test_status_transition_fires_after_a_failed_write_is_retried(): void {
-		$order = new WC_Order();
-		$order->save();
-		$changed    = did_action( 'woocommerce_order_status_changed' );
-		$transition = did_action( 'woocommerce_order_status_pending_to_processing' );
-
-		$order->set_status( OrderStatus::PROCESSING );
-		$this->save_with_failed_write( $order );
-		$this->assertSame( 0, did_action( 'woocommerce_order_status_changed' ) - $changed );
-		$this->assertSame( 0, did_action( 'woocommerce_order_status_pending_to_processing' ) - $transition );
-
-		$order->save();
-		$order->save();
-		$this->assertSame( 1, did_action( 'woocommerce_order_status_changed' ) - $changed );
-		$this->assertSame( 1, did_action( 'woocommerce_order_status_pending_to_processing' ) - $transition );
-	}
-
-	/**
-	 * Run a callback while a listener makes every order write fail.
-	 *
-	 * @param callable $callback Callback to run.
-	 * @return mixed What the callback returns.
-	 */
-	private function with_failed_writes( callable $callback ) {
-		$fail = static function () {
-			throw new Exception( 'Disk full.' );
-		};
-		add_action( 'woocommerce_before_order_object_save', $fail );
-		try {
-			return $callback();
-		} finally {
-			remove_action( 'woocommerce_before_order_object_save', $fail );
-		}
-	}
-
-	/**
-	 * @testdox payment_complete() returns false and fires no payment or status hook when the order write fails.
-	 */
-	public function test_payment_complete_stops_when_the_write_fails(): void {
-		$order = new WC_Order();
-		$order->save();
-		$paid    = did_action( 'woocommerce_payment_complete' );
-		$changed = did_action( 'woocommerce_order_status_changed' );
-
-		$result = $this->with_failed_writes(
-			static function () use ( $order ) {
-				return $order->payment_complete( '12345' );
-			}
-		);
-
-		$this->assertFalse( $result );
-		$this->assertSame( 0, did_action( 'woocommerce_payment_complete' ) - $paid );
-		$this->assertSame( 0, did_action( 'woocommerce_order_status_changed' ) - $changed );
-		$stored = wc_get_order( $order->get_id() );
-		$this->assertSame( OrderStatus::PENDING, $stored->get_status() );
-		$this->assertNull( $stored->get_date_paid() );
-	}
-
-	/**
-	 * @testdox A failed payment_complete() write adds one error note and no payment note.
-	 */
-	public function test_payment_complete_adds_one_error_note_when_the_write_fails(): void {
-		$order = new WC_Order();
-		$order->save();
-
-		$this->with_failed_writes(
-			static function () use ( $order ) {
-				return $order->payment_complete( '12345' );
-			}
-		);
-
-		$notes = wp_list_pluck( wc_get_order_notes( array( 'order_id' => $order->get_id() ) ), 'content' );
-		$this->assertCount( 1, $notes );
-		$this->assertStringContainsString( 'Disk full.', $notes[0] );
-	}
-
-	/**
-	 * @testdox The retry after a failed payment_complete() fires woocommerce_payment_complete when the note listener throws.
-	 */
-	public function test_payment_complete_retry_fires_its_action_when_the_note_listener_throws(): void {
-		$order = new WC_Order();
-		$order->save();
-		$paid = did_action( 'woocommerce_payment_complete' );
-		$this->with_failed_writes(
-			static function () use ( $order ) {
-				return $order->payment_complete( '12345' );
-			}
-		);
-		$throw = static function () {
-			throw new Exception( 'Note listener failed.' );
-		};
-		add_action( 'woocommerce_order_note_added', $throw );
-
-		try {
-			$order->save();
-		} finally {
-			remove_action( 'woocommerce_order_note_added', $throw );
-		}
-
-		$this->assertSame( 1, did_action( 'woocommerce_payment_complete' ) - $paid );
-	}
-
-	/**
-	 * @testdox The retry after a failed payment_complete() fires its action when the status moved to another paid status.
-	 */
-	public function test_payment_complete_retry_fires_its_action_after_a_move_to_another_paid_status(): void {
-		$order = new WC_Order();
-		$order->save();
-		$paid = did_action( 'woocommerce_payment_complete' );
-		$this->with_failed_writes(
-			static function () use ( $order ) {
-				return $order->payment_complete( '12345' );
-			}
-		);
-		$this->assertSame( OrderStatus::COMPLETED, $order->get_status() );
-
-		$order->set_status( OrderStatus::PROCESSING );
-		$order->save();
-
-		$this->assertSame( 1, did_action( 'woocommerce_payment_complete' ) - $paid );
-	}
-
-	/**
-	 * @testdox The retry after a failed payment_complete() logs a throwing payment listener and keeps the other callbacks.
-	 */
-	public function test_payment_complete_retry_logs_a_throwing_payment_listener(): void {
-		$order = new WC_Order();
-		$order->save();
-		$this->with_failed_writes(
-			static function () use ( $order ) {
-				return $order->payment_complete( '12345' );
-			}
-		);
-		$order->stage_order_note( 'Staged after the failed call.' );
-		$throw = static function () {
-			throw new Exception( 'Payment listener failed.' );
-		};
-		add_action( 'woocommerce_payment_complete', $throw );
-
-		try {
-			$order->save();
-		} finally {
-			remove_action( 'woocommerce_payment_complete', $throw );
-		}
-
-		$notes = wp_list_pluck( wc_get_order_notes( array( 'order_id' => $order->get_id() ) ), 'content' );
-		$this->assertContains( 'Payment complete event failed. Payment listener failed.', $notes );
-		$this->assertContains( 'Staged after the failed call.', $notes );
-		$this->assertSame( OrderStatus::COMPLETED, wc_get_order( $order->get_id() )->get_status() );
-	}
-
-	/**
-	 * @testdox payment_complete() still fires woocommerce_payment_complete when adding the payment note throws.
-	 */
-	public function test_payment_complete_fires_its_action_when_the_payment_note_throws(): void {
-		$order = new WC_Order();
-		$order->save();
-		$paid  = did_action( 'woocommerce_payment_complete' );
-		$throw = static function ( $comment_id ) {
-			if ( 'Payment complete.' === get_comment( $comment_id )->comment_content ) {
-				throw new Exception( 'Note listener failed.' );
-			}
-		};
-		add_action( 'woocommerce_order_note_added', $throw );
-
-		$result = $order->payment_complete( '12345' );
-
-		remove_action( 'woocommerce_order_note_added', $throw );
-		$this->assertTrue( $result );
-		$this->assertSame( 1, did_action( 'woocommerce_payment_complete' ) - $paid );
-		$this->assertSame( OrderStatus::COMPLETED, wc_get_order( $order->get_id() )->get_status() );
-	}
-
-	/**
-	 * @testdox woocommerce_payment_complete fires once, when a save after a failed payment_complete() succeeds.
-	 */
-	public function test_payment_complete_fires_its_hook_after_a_failed_write_is_retried(): void {
-		$order = new WC_Order();
-		$order->save();
-		$paid = did_action( 'woocommerce_payment_complete' );
-
-		$this->with_failed_writes(
-			static function () use ( $order ) {
-				return $order->payment_complete( '12345' );
-			}
-		);
-		$order->save();
-		$order->save();
-
-		$this->assertSame( 1, did_action( 'woocommerce_payment_complete' ) - $paid );
-		$this->assertSame( OrderStatus::COMPLETED, wc_get_order( $order->get_id() )->get_status() );
-	}
-
-	/**
-	 * @testdox A payment_complete() retry after a failed write fires its payment hook and note once.
-	 */
-	public function test_payment_complete_retry_after_a_failed_write_reports_the_payment_once(): void {
-		$order = new WC_Order();
-		$order->save();
-		$paid = did_action( 'woocommerce_payment_complete' );
-
-		$this->with_failed_writes(
-			static function () use ( $order ) {
-				return $order->payment_complete( '12345' );
-			}
-		);
-		$order->set_status( OrderStatus::PENDING );
-		$this->assertTrue( $order->payment_complete( '12345' ) );
-
-		$this->assertSame( 1, did_action( 'woocommerce_payment_complete' ) - $paid );
-		$notes = wp_list_pluck( wc_get_order_notes( array( 'order_id' => $order->get_id() ) ), 'content' );
-		$this->assertCount( 1, array_keys( $notes, 'Payment complete.', true ) );
-	}
-
-	/**
-	 * @testdox A payment_complete() retry after a failed staged payment adds only the note of the retry.
-	 */
-	public function test_payment_complete_retry_after_a_failed_staged_payment_adds_one_note(): void {
-		$order = new WC_Order();
-		$order->set_payment_method_title( 'Cheque' );
-		$order->save();
-
-		$order->stage_payment_complete( 'first' );
-		$this->with_failed_writes( array( $order, 'save' ) );
-		$order->set_status( OrderStatus::PENDING );
-		$this->assertTrue( $order->payment_complete( 'second' ) );
-
-		$notes = wp_list_pluck( wc_get_order_notes( array( 'order_id' => $order->get_id() ) ), 'content' );
-		$this->assertNotContains( 'Payment via Cheque (first).', $notes );
-		$this->assertCount( 1, array_keys( $notes, 'Payment via Cheque (second).', true ) );
-	}
-
-	/**
-	 * @testdox payment_complete() adds no payment note when the order write fails.
-	 */
-	public function test_payment_complete_adds_no_payment_note_when_the_write_fails(): void {
-		$order = new WC_Order();
-		$order->save();
-
-		$this->with_failed_writes(
-			static function () use ( $order ) {
-				return $order->payment_complete( '12345' );
-			}
-		);
-
-		$notes = wp_list_pluck( wc_get_order_notes( array( 'order_id' => $order->get_id() ) ), 'content' );
-		$this->assertNotContains( 'Payment complete.', $notes );
-	}
-
-	/**
-	 * @testdox A save after a failed payment_complete() fires no payment hook when the status changed in between.
-	 */
-	public function test_payment_complete_drops_its_hook_when_the_status_changes_after_a_failed_write(): void {
-		$order = new WC_Order();
-		$order->save();
-		$paid = did_action( 'woocommerce_payment_complete' );
-
-		$this->with_failed_writes(
-			static function () use ( $order ) {
-				return $order->payment_complete( '12345' );
-			}
-		);
-		$order->set_status( OrderStatus::FAILED );
-		$order->save();
-
-		$this->assertSame( 0, did_action( 'woocommerce_payment_complete' ) - $paid );
-		$this->assertSame( OrderStatus::FAILED, wc_get_order( $order->get_id() )->get_status() );
-	}
-
-	/**
-	 * @testdox update_taxes() does not write the tax items when the order write fails.
-	 */
-	public function test_update_taxes_does_not_write_tax_items_when_the_write_fails(): void {
-		$rate_id = WC_Tax::_insert_tax_rate(
-			array(
-				'tax_rate_country' => '',
-				'tax_rate'         => '10.0000',
-				'tax_rate_name'    => 'TAX',
-				'tax_rate_order'   => '1',
-			)
-		);
-		$order   = new WC_Order();
-		$product = new WC_Order_Item_Product();
-		$product->set_taxes(
-			array(
-				'total'    => array( $rate_id => '1' ),
-				'subtotal' => array( $rate_id => '1' ),
-			)
-		);
-		$order->add_item( $product );
-		$order->update_taxes();
-		$tax_item = current( $order->get_taxes() );
-		$this->assertSame( 1.0, (float) $tax_item->get_tax_total() );
-
-		$product->set_taxes(
-			array(
-				'total'    => array( $rate_id => '2' ),
-				'subtotal' => array( $rate_id => '2' ),
-			)
-		);
-		$this->with_failed_writes( array( $order, 'update_taxes' ) );
-
-		$this->assertSame( 1.0, (float) ( new WC_Order_Item_Tax( $tax_item->get_id() ) )->get_tax_total() );
-	}
-
-	/**
-	 * Test: a staged note is not added when the order write fails.
-	 */
-	public function test_stage_order_note_is_skipped_when_the_write_fails() {
-		$order = new WC_Order();
-		$order->save();
-		$notes = count( wc_get_order_notes( array( 'order_id' => $order->get_id() ) ) );
-		$fail  = static function () {
-			throw new Exception( 'Disk full.' );
-		};
-
-		$order->stage_order_note( 'Staged note.' );
-		add_action( 'woocommerce_before_order_object_save', $fail );
-		try {
-			$order->save();
-		} finally {
-			remove_action( 'woocommerce_before_order_object_save', $fail );
-		}
-
-		$this->assertInstanceOf( Exception::class, $order->get_last_save_error() );
-		$found = wc_get_order_notes( array( 'order_id' => $order->get_id() ) );
-		$this->assertCount( $notes + 1, $found, 'Only the error note of the failed save is added.' );
-		$this->assertStringNotContainsString( 'Staged note.', current( $found )->content );
-	}
-
-	/**
-	 * Test: stage_totals fires woocommerce_order_after_calculate_totals on the next save, right before the write, and a change made by the listener is written.
-	 */
-	public function test_staged_after_calculate_totals_fires_on_save() {
-		$order    = WC_Helper_Order::create_order();
-		$calls    = array();
-		$listener = static function ( $and_taxes, $listened_order, $staged ) use ( &$calls ) {
-			$calls[] = $staged;
-			$listened_order->set_total( 99 );
-		};
-		add_action( 'woocommerce_order_after_calculate_totals', $listener, 10, 3 );
-
-		$order->stage_totals( false );
-		$this->assertSame( array(), $calls );
-
-		$order->save();
-		$this->assertSame( array( true ), $calls );
-		$this->assertEquals( 99, wc_get_order( $order->get_id() )->get_total() );
-
-		$order->calculate_totals( false );
-		remove_action( 'woocommerce_order_after_calculate_totals', $listener, 10 );
-		$this->assertSame( array( true, false ), $calls );
-	}
-
-	/**
-	 * Test: a saving method that runs after its stage method replaces the staged entry, so the next save does not
-	 * fire woocommerce_order_after_calculate_totals again.
-	 */
-	public function test_saving_method_after_its_stage_method_replaces_the_staged_entry() {
-		$order    = WC_Helper_Order::create_order();
-		$calls    = array();
-		$listener = static function ( $and_taxes, $listened_order, $staged ) use ( &$calls ) {
-			$calls[] = $staged;
-		};
-		add_action( 'woocommerce_order_after_calculate_totals', $listener, 10, 3 );
-
-		$order->stage_totals( false );
-		$order->calculate_totals( false );
-		$order->save();
-		remove_action( 'woocommerce_order_after_calculate_totals', $listener, 10 );
-
-		$this->assertSame( array( false ), $calls );
-	}
-
-	/**
-	 * Test: a clone starts without the staged callbacks, so saving the clone and then the original fires
-	 * woocommerce_order_after_calculate_totals once, for the original.
-	 */
-	public function test_clone_does_not_copy_staged_callbacks() {
-		$order    = WC_Helper_Order::create_order();
-		$orders   = array();
-		$listener = static function ( $and_taxes, $listened_order ) use ( &$orders ) {
-			$orders[] = $listened_order;
-		};
-		add_action( 'woocommerce_order_after_calculate_totals', $listener, 10, 2 );
-
-		$order->stage_totals( false );
-		$copy = clone $order;
-		$copy->save();
-		$order->save();
-		remove_action( 'woocommerce_order_after_calculate_totals', $listener, 10 );
-
-		$this->assertSame( array( $order ), $orders );
-	}
-
-	/**
-	 * Test: stage_coupon() refuses a class that overrides only calculate_totals() before it fires
-	 * woocommerce_order_applied_coupon or adds the coupon.
-	 */
-	public function test_stage_coupon_refuses_an_unadopted_twin_of_its_chain_before_any_change() {
-		$coupon = new WC_Coupon();
-		$coupon->set_code( 'chain' );
-		$coupon->set_discount_type( 'fixed_cart' );
-		$coupon->set_amount( 10 );
-		$coupon->save();
-
-		// phpcs:disable Squiz.Commenting.FunctionComment.Missing, Generic.CodeAnalysis.UselessOverridingMethod.Found
-		$order = new class() extends WC_Order {
-			public function calculate_totals( $and_taxes = true ) {
-				return parent::calculate_totals( $and_taxes );
-			}
-		};
-		// phpcs:enable Squiz.Commenting.FunctionComment.Missing, Generic.CodeAnalysis.UselessOverridingMethod.Found
-		$order->add_product( WC_Helper_Product::create_simple_product(), 1 );
-		$order->calculate_totals();
-
-		$fired = did_action( 'woocommerce_order_applied_coupon' );
-		try {
-			$order->stage_coupon( 'chain' );
-			$this->fail( 'stage_coupon did not refuse the class.' );
-		} catch ( WC_Data_Exception $e ) {
-			$this->assertStringContainsString( 'stage_totals()', $e->getMessage() );
-		}
-
-		$this->assertSame( 0, did_action( 'woocommerce_order_applied_coupon' ) - $fired );
-		$this->assertCount( 0, $order->get_items( 'coupon' ) );
-	}
-
-	/**
-	 * Test: a woocommerce_order_after_calculate_totals listener that calls a saving method saves the order from
-	 * inside the save of stage_totals(). The action fires once, and the listener's taxes and total are written.
-	 */
-	public function test_staged_after_calculate_totals_listener_can_call_a_saving_method() {
-		update_option( 'woocommerce_calc_taxes', 'yes' );
-		WC_Tax::_insert_tax_rate(
-			array(
-				'tax_rate_country'  => '',
-				'tax_rate_state'    => '',
-				'tax_rate'          => '10.0000',
-				'tax_rate_name'     => 'TAX',
-				'tax_rate_priority' => '1',
-				'tax_rate_compound' => '0',
-				'tax_rate_shipping' => '1',
-				'tax_rate_order'    => '1',
-				'tax_rate_class'    => '',
-			)
-		);
-		$order    = WC_Helper_Order::create_order();
-		$calls    = 0;
-		$listener = static function ( $and_taxes, $listened_order ) use ( &$calls ) {
-			++$calls;
-			$listened_order->update_taxes();
-			$listened_order->set_total( 123 );
-		};
-		add_action( 'woocommerce_order_after_calculate_totals', $listener, 10, 2 );
-
-		$order->stage_totals( true );
-		$this->assertSame( 0, $calls );
-
-		$order->save();
-		remove_action( 'woocommerce_order_after_calculate_totals', $listener, 10 );
-		$this->assertSame( 1, $calls );
-
-		$saved = wc_get_order( $order->get_id() );
-		$this->assertEquals( 123, $saved->get_total() );
-		$taxes = $saved->get_taxes();
-		$this->assertCount( 1, $taxes );
-		$this->assertGreaterThan( 0, current( $taxes )->get_id() );
-		$this->assertGreaterThan( 0, (float) $saved->get_cart_tax() );
-	}
-
-	/**
-	 * Test: the saving methods save as many times as before, so hooks see saved items, and their stage twins save nothing.
-	 */
-	public function test_saving_methods_keep_their_saves() {
-		$order  = WC_Helper_Order::create_order();
-		$coupon = new WC_Coupon();
-		$coupon->set_code( 'saves' );
-		$coupon->set_discount_type( 'fixed_cart' );
-		$coupon->set_amount( 10 );
-		$coupon->save();
-
-		$count       = 0;
-		$count_saves = static function ( $saved ) use ( $order, &$count ) {
-			if ( $saved === $order ) {
-				++$count;
-			}
-		};
-		add_action( 'woocommerce_after_order_object_save', $count_saves );
-		$saves = static function () use ( &$count ) {
-			return $count;
-		};
-
-		$before = $saves();
-		$order->calculate_totals( true );
-		$this->assertSame( 2, $saves() - $before );
-
-		$before = $saves();
-		$order->calculate_totals( false );
-		$this->assertSame( 1, $saves() - $before );
-
-		$before = $saves();
-		$order->apply_coupon( 'saves' );
-		$this->assertSame( 3, $saves() - $before );
-
-		$item_ids = array();
-		$listener = static function ( $and_taxes, $listened_order ) use ( &$item_ids ) {
-			$item_ids = array_keys( $listened_order->get_items( 'coupon' ) );
-		};
-		add_action( 'woocommerce_order_after_calculate_totals', $listener, 10, 2 );
-		$order->calculate_totals( true );
-		remove_action( 'woocommerce_order_after_calculate_totals', $listener, 10 );
-		$this->assertCount( 1, $item_ids );
-		$this->assertIsInt( $item_ids[0] );
-
-		$before = $saves();
-		$order->stage_totals( true );
-		$order->stage_coupon_removal( 'saves' );
-		remove_action( 'woocommerce_after_order_object_save', $count_saves );
-		$this->assertSame( 0, $saves() - $before );
-	}
-
-	/**
-	 * Test: stage_totals recalculates the totals in memory and saves nothing until the next save.
-	 */
-	public function test_stage_totals_saves_nothing() {
-		$order    = WC_Helper_Order::create_order();
-		$shipping = current( $order->get_items( 'shipping' ) );
-		$shipping->set_total( 20 );
-
-		$this->assertEquals( 60, $order->stage_totals( false ) );
-		$this->assertEquals( 50, wc_get_order( $order->get_id() )->get_total() );
-
-		$order->save();
-		$this->assertEquals( 60, wc_get_order( $order->get_id() )->get_total() );
-	}
-
-	/**
-	 * Test: stage_coupon and stage_coupon_removal change the order in memory, and the next save writes the order and fires the removed coupon action.
-	 */
-	public function test_stage_coupon_and_removal_write_on_save() {
-		$order  = WC_Helper_Order::create_order();
-		$coupon = new WC_Coupon();
-		$coupon->set_code( 'staged' );
-		$coupon->set_discount_type( 'fixed_cart' );
-		$coupon->set_amount( 10 );
-		$coupon->save();
-
-		$this->assertTrue( $order->stage_coupon( 'staged' ) );
-		$this->assertEquals( 40, $order->get_total() );
-		$this->assertCount( 0, wc_get_order( $order->get_id() )->get_items( 'coupon' ) );
-		$this->assertEquals( 50, wc_get_order( $order->get_id() )->get_total() );
-
-		$order->save();
-		$this->assertCount( 1, wc_get_order( $order->get_id() )->get_items( 'coupon' ) );
-		$this->assertEquals( 40, wc_get_order( $order->get_id() )->get_total() );
-
-		$removed = did_action( 'woocommerce_order_removed_coupon' );
-		$this->assertTrue( $order->stage_coupon_removal( 'staged' ) );
-		$this->assertEquals( 50, $order->get_total() );
-		$this->assertSame( 0, did_action( 'woocommerce_order_removed_coupon' ) - $removed );
-		$this->assertCount( 1, wc_get_order( $order->get_id() )->get_items( 'coupon' ) );
-
-		$order->save();
-		$this->assertSame( 1, did_action( 'woocommerce_order_removed_coupon' ) - $removed );
-		$this->assertCount( 0, wc_get_order( $order->get_id() )->get_items( 'coupon' ) );
-		$this->assertEquals( 50, wc_get_order( $order->get_id() )->get_total() );
-	}
-
-	/**
-	 * Create and save a fixed cart coupon.
-	 *
-	 * @param string $code        Coupon code.
-	 * @param int    $usage_count Usage count to start with.
-	 * @return WC_Coupon
-	 */
-	private function create_fixed_cart_coupon( string $code, int $usage_count = 0 ): WC_Coupon {
-		$coupon = new WC_Coupon();
-		$coupon->set_code( $code );
-		$coupon->set_discount_type( 'fixed_cart' );
-		$coupon->set_amount( 1 );
-		$coupon->set_usage_count( $usage_count );
-		$coupon->save();
-
-		return $coupon;
-	}
-
-	/**
-	 * @testdox Two staged coupons are counted once each when the order is saved.
-	 */
-	public function test_staged_coupons_are_counted_once_each(): void {
-		$order = WC_Helper_Order::create_order();
-		$this->create_fixed_cart_coupon( 'staged-a' );
-		$this->create_fixed_cart_coupon( 'staged-b' );
-
-		$order->stage_coupon( 'staged-a' );
-		$order->stage_coupon( 'staged-b' );
-		$order->save();
-
-		$this->assertSame( 1, ( new WC_Coupon( 'staged-a' ) )->get_usage_count() );
-		$this->assertSame( 1, ( new WC_Coupon( 'staged-b' ) )->get_usage_count() );
-	}
-
-	/**
-	 * @testdox A coupon that apply_coupon() adds after a staged coupon is counted once.
-	 */
-	public function test_coupon_applied_after_a_staged_coupon_is_counted_once(): void {
-		$order = WC_Helper_Order::create_order();
-		$this->create_fixed_cart_coupon( 'staged-first' );
-		$this->create_fixed_cart_coupon( 'applied-second' );
-
-		$order->stage_coupon( 'staged-first' );
-		$order->apply_coupon( 'applied-second' );
-
-		$this->assertSame( 1, ( new WC_Coupon( 'staged-first' ) )->get_usage_count() );
-		$this->assertSame( 1, ( new WC_Coupon( 'applied-second' ) )->get_usage_count() );
-	}
-
-	/**
-	 * @testdox A staged coupon is counted once when payment_complete() saves the order.
-	 */
-	public function test_staged_coupon_is_counted_once_on_payment_complete(): void {
-		$order = WC_Helper_Order::create_order();
-		$this->create_fixed_cart_coupon( 'staged-paid' );
-
-		$order->stage_coupon( 'staged-paid' );
-		$order->payment_complete();
-
-		$this->assertSame( 1, ( new WC_Coupon( 'staged-paid' ) )->get_usage_count() );
-	}
-
-	/**
-	 * @testdox A staged coupon is counted on an order that already recorded its coupon usage.
-	 */
-	public function test_staged_coupon_is_counted_on_a_recorded_order(): void {
-		$order = WC_Helper_Order::create_order();
-		$this->create_fixed_cart_coupon( 'recorded' );
-		$this->create_fixed_cart_coupon( 'staged-late' );
-		$order->apply_coupon( 'recorded' );
-
-		$order->stage_coupon( 'staged-late' );
-		$order->save();
-
-		$this->assertSame( 1, ( new WC_Coupon( 'recorded' ) )->get_usage_count() );
-		$this->assertSame( 1, ( new WC_Coupon( 'staged-late' ) )->get_usage_count() );
-	}
-
-	/**
-	 * @testdox A coupon that apply_coupon() adds after the staged removal of the only recorded coupon is counted once.
-	 */
-	public function test_coupon_applied_after_staged_removal_of_recorded_coupon_is_counted_once(): void {
-		$order = WC_Helper_Order::create_order();
-		$this->create_fixed_cart_coupon( 'recorded-removed' );
-		$this->create_fixed_cart_coupon( 'applied-replacement' );
-		$order->apply_coupon( 'recorded-removed' );
-
-		$order->stage_coupon_removal( 'recorded-removed' );
-		$order->apply_coupon( 'applied-replacement' );
-
-		$this->assertSame( 0, ( new WC_Coupon( 'recorded-removed' ) )->get_usage_count() );
-		$this->assertSame( 1, ( new WC_Coupon( 'applied-replacement' ) )->get_usage_count() );
-	}
-
-	/**
-	 * @testdox A coupon staged after the staged removal of the only recorded coupon is counted once on save.
-	 */
-	public function test_coupon_staged_after_staged_removal_of_recorded_coupon_is_counted_once(): void {
-		$order = WC_Helper_Order::create_order();
-		$this->create_fixed_cart_coupon( 'recorded-replaced' );
-		$this->create_fixed_cart_coupon( 'staged-replacement' );
-		$order->apply_coupon( 'recorded-replaced' );
-
-		$order->stage_coupon_removal( 'recorded-replaced' );
-		$order->stage_coupon( 'staged-replacement' );
-		$order->save();
-
-		$this->assertSame( 0, ( new WC_Coupon( 'recorded-replaced' ) )->get_usage_count() );
-		$this->assertSame( 1, ( new WC_Coupon( 'staged-replacement' ) )->get_usage_count() );
-	}
-
-	/**
-	 * @testdox Removing a staged coupon before the save leaves no usage of that coupon on the order.
-	 */
-	public function test_removing_a_staged_coupon_leaves_no_usage(): void {
-		$order = WC_Helper_Order::create_order();
-		$kept  = $this->create_fixed_cart_coupon( 'kept' );
-		$this->create_fixed_cart_coupon( 'staged-removed', 1 );
-		$order->apply_coupon( 'kept' );
-
-		$order->stage_coupon( 'staged-removed' );
-		$order->stage_coupon_removal( 'staged-removed' );
-		$order->save();
-
-		$this->assertSame( 1, ( new WC_Coupon( 'kept' ) )->get_usage_count() );
-		$this->assertSame( 1, ( new WC_Coupon( 'staged-removed' ) )->get_usage_count() );
-		$this->assertSame( array( $kept->get_id() ), array_keys( wc_get_order( $order->get_id() )->get_meta( '_coupon_usage_identities' ) ) );
-	}
-
-	/**
-	 * @testdox A staged product item that the order removes before the save is not written.
-	 */
-	public function test_staged_product_item_removed_before_save_is_not_written(): void {
-		$order = new WC_Order();
-		$order->save();
-
-		$order->stage_product_item( WC_Helper_Product::create_simple_product() );
-		$order->stage_order_items_removal( 'line_item' );
-		$order->save();
-
-		$this->assertCount( 0, $order->get_items() );
-		$this->assertCount( 0, wc_get_order( $order->get_id() )->get_items() );
-	}
-
-	/**
-	 * Build an order of a class that overrides the saving methods without overriding their stage_*() methods.
-	 *
-	 * @return WC_Order
-	 */
-	private function get_order_that_has_not_adopted_stage_methods() {
-		// phpcs:disable Squiz.Commenting.FunctionComment.Missing, Generic.CodeAnalysis.UselessOverridingMethod.Found
-		$object = new class() extends WC_Order {
-			public function update_status( $new_status, $note = '', $manual = false ) {
-				return parent::update_status( $new_status, $note, $manual );
-			}
-			public function payment_complete( $transaction_id = '' ) {
-				return parent::payment_complete( $transaction_id );
-			}
-			public function add_product( $product, $qty = 1, $args = array() ) {
-				return parent::add_product( $product, $qty, $args );
-			}
-			public function calculate_totals( $and_taxes = true ) {
-				return parent::calculate_totals( $and_taxes );
-			}
-			public function apply_coupon( $raw_coupon ) {
-				return parent::apply_coupon( $raw_coupon );
-			}
-			public function remove_coupon( $code ) {
-				return parent::remove_coupon( $code );
-			}
-			public function recalculate_coupons() {
-				parent::recalculate_coupons();
-			}
-			public function calculate_shipping() {
-				return parent::calculate_shipping();
-			}
-			public function calculate_taxes( $args = array() ) {
-				parent::calculate_taxes( $args );
-			}
-			public function update_taxes() {
-				parent::update_taxes();
-			}
-			public function remove_order_items( $type = null ) {
-				parent::remove_order_items( $type );
-			}
-		};
-		// phpcs:enable Squiz.Commenting.FunctionComment.Missing, Generic.CodeAnalysis.UselessOverridingMethod.Found
-		$object->save();
-
-		return $object;
-	}
-
-	/**
-	 * Test: a class that overrides the saving methods and has not adopted the stage methods keeps working through the saving methods.
-	 */
-	public function test_saving_methods_work_on_a_class_that_has_not_adopted_stage_methods() {
-		$object = $this->get_order_that_has_not_adopted_stage_methods();
-		$coupon = new WC_Coupon();
-		$coupon->set_code( 'unadopted' );
-		$coupon->set_discount_type( 'fixed_cart' );
-		$coupon->set_amount( 1 );
-		$coupon->save();
-
-		$item_id = $object->add_product( WC_Helper_Product::create_simple_product(), 2 );
-		$this->assertGreaterThan( 0, $item_id );
-		$this->assertTrue( $object->apply_coupon( 'unadopted' ) );
-		$this->assertCount( 1, $object->get_items( 'coupon' ) );
-		$this->assertTrue( $object->remove_coupon( 'unadopted' ) );
-		$object->recalculate_coupons();
-		$object->calculate_shipping();
-		$object->calculate_taxes();
-		$object->update_taxes();
-		$this->assertEquals( 20, $object->calculate_totals() );
-		$this->assertTrue( $object->update_status( OrderStatus::ON_HOLD, '', true ) );
-		$this->assertTrue( $object->payment_complete( '12345' ) );
-		$object->remove_order_items( 'line_item' );
-		$object->save();
-
-		$stored = wc_get_order( $object->get_id() );
-		$this->assertSame( '12345', $stored->get_transaction_id() );
-		$this->assertCount( 0, $stored->get_items() );
-	}
-
-	/**
-	 * Test: a direct call of a stage method refuses a class that overrides its saving method without overriding the stage method.
-	 */
-	public function test_stage_methods_refuse_a_class_that_has_not_adopted_them() {
-		$calls = array(
-			'stage_status'               => array( OrderStatus::ON_HOLD, '', true ),
-			'stage_payment_complete'     => array( '12345' ),
-			'stage_product_item'         => array( WC_Helper_Product::create_simple_product() ),
-			'stage_totals'               => array(),
-			'stage_coupon'               => array( 'missing' ),
-			'stage_coupon_removal'       => array( 'missing' ),
-			'stage_recalculated_coupons' => array(),
-			'stage_shipping_total'       => array(),
-			'stage_taxes'                => array(),
-			'stage_tax_items'            => array(),
-			'stage_order_items_removal'  => array(),
-		);
-
-		foreach ( $calls as $stage_method => $args ) {
-			$object = $this->get_order_that_has_not_adopted_stage_methods();
-			try {
-				$object->$stage_method( ...$args );
-				$this->fail( $stage_method . ' did not refuse the class.' );
-			} catch ( WC_Data_Exception $e ) {
-				$this->assertSame( 'woocommerce_data_staging_unsupported', $e->getErrorCode(), $stage_method );
-				$this->assertStringContainsString( $stage_method . '()', $e->getMessage() );
-				$this->assertSame( OrderStatus::PENDING, $object->get_status(), $stage_method );
-			}
-		}
-	}
-
-	/**
-	 * Test: no stage method refuses Core's own order classes, and each stage method runs on a plain order.
-	 */
-	public function test_stage_methods_do_not_refuse_core_order_classes() {
-		$pairs = array(
-			'remove_order_items'  => 'stage_order_items_removal',
-			'apply_coupon'        => 'stage_coupon',
-			'remove_coupon'       => 'stage_coupon_removal',
-			'recalculate_coupons' => 'stage_recalculated_coupons',
-			'add_product'         => 'stage_product_item',
-			'calculate_shipping'  => 'stage_shipping_total',
-			'calculate_taxes'     => 'stage_taxes',
-			'update_taxes'        => 'stage_tax_items',
-			'calculate_totals'    => 'stage_totals',
-		);
-		foreach ( $pairs as $method => $stage_method ) {
-			$this->assertNull( StagedMethod::unstaged_class( new WC_Order(), $method, $stage_method ), $stage_method );
-			$this->assertNull( StagedMethod::unstaged_class( new WC_Order_Refund(), $method, $stage_method ), $stage_method );
-		}
-		$this->assertNull( StagedMethod::unstaged_class( new WC_Order(), 'update_status', 'stage_status' ) );
-		$this->assertNull( StagedMethod::unstaged_class( new WC_Order(), 'payment_complete', 'stage_payment_complete' ) );
-	}
-
-	/**
-	 * Test: update_status fires woocommerce_order_edit_status before it writes and after the paid and completed dates are set, and set_status fires it before those dates are set.
-	 */
-	public function test_edit_status_action_fires_before_the_write() {
-		$events   = array();
-		$object   = null;
-		$listener = static function ( $order_id ) use ( &$events, &$object ) {
-			$events[] = array(
-				wc_get_order( $order_id )->get_status(),
-				null === $object->get_date_paid( 'edit' ),
-				null === $object->get_date_completed( 'edit' ),
-			);
-		};
-		add_action( 'woocommerce_order_edit_status', $listener );
-
-		$object = new WC_Order();
-		$object->save();
-		$object->update_status( OrderStatus::COMPLETED, '', true );
-
-		$object = new WC_Order();
-		$object->save();
-		$object->set_status( OrderStatus::COMPLETED, '', true );
-		$set = array( null !== $object->get_date_paid( 'edit' ), null !== $object->get_date_completed( 'edit' ) );
-
-		remove_action( 'woocommerce_order_edit_status', $listener );
-		$this->assertSame( array( OrderStatus::PENDING, false, false ), $events[0] );
-		$this->assertSame( array( OrderStatus::PENDING, true, true ), $events[1] );
-		$this->assertSame( array( true, true ), $set );
-	}
-
 	/**
 	 * Test that exceptions thrown during update_status are handled.
 	 * Note: This can't actually test the transaction rollbacks since WC transactions are disabled in unit tests.
diff --git a/plugins/woocommerce/tests/php/includes/abstracts/class-wc-abstract-order-test.php b/plugins/woocommerce/tests/php/includes/abstracts/class-wc-abstract-order-test.php
index 40d385652be..1fc8abedad6 100644
--- a/plugins/woocommerce/tests/php/includes/abstracts/class-wc-abstract-order-test.php
+++ b/plugins/woocommerce/tests/php/includes/abstracts/class-wc-abstract-order-test.php
@@ -1126,28 +1126,6 @@ class WC_Abstract_Order_Test extends WC_Unit_Test_Case {
 		$this->assertTrue( $stored->get_data_store()->get_recorded_coupon_usage_counts( $stored ), 'The order should stay counted for the kept coupon' );
 	}

-	/**
-	 * @testdox Two copies of one order that both stage the removal of the same coupon and save give its use back only once.
-	 */
-	public function test_stage_coupon_removal_on_two_copies_of_order_gives_use_back_once(): void {
-		$order       = $this->create_pending_order_with_counted_coupons( array( 'two-staged-copies' ) );
-		$first_copy  = wc_get_order( $order->get_id() );
-		$second_copy = wc_get_order( $order->get_id() );
-		$this->assertCount( 1, $second_copy->get_items( 'coupon' ), 'The second copy should load the coupon line before the first one removes it' );
-
-		$this->assertTrue( $first_copy->stage_coupon_removal( 'two-staged-copies' ), 'The first copy should stage the removal' );
-		$this->assertTrue( $second_copy->stage_coupon_removal( 'two-staged-copies' ), 'The second copy should also stage the removal' );
-		$this->assertCount( 1, wc_get_order( $order->get_id() )->get_items( 'coupon' ), 'Staging should leave the stored coupon line until the save' );
-		$this->assertSame( 6, ( new WC_Coupon( 'two-staged-copies' ) )->get_usage_count(), 'Staging should not give the use back yet' );
-		$first_copy->save();
-		$second_copy->save();
-
-		$this->assertSame( 5, ( new WC_Coupon( 'two-staged-copies' ) )->get_usage_count(), 'The use should be given back once' );
-		$stored = wc_get_order( $order->get_id() );
-		$this->assertSame( array(), $stored->get_coupon_codes(), 'The coupon should be gone from the order' );
-		$this->assertFalse( $stored->get_data_store()->get_recorded_coupon_usage_counts( $stored ), 'The order should no longer be counted' );
-	}
-
 	/**
 	 * @testdox Removing two coupons one after the other gives each use back and clears the counted flag after the last one.
 	 */
@@ -3385,4 +3363,28 @@ class WC_Abstract_Order_Test extends WC_Unit_Test_Case {

 		$this->assertStringContainsString( 'You have used this coupon', (string) $this->try_hold_coupon( 'hold_email_change', 'before@example.com' ), 'The use is found through the email recorded with it' );
 	}
+
+	/**
+	 * @testdox apply_coupon() counts the coupon once when its own save also changes the order status.
+	 *
+	 * @testWith ["processing", "completed"]
+	 *           ["pending", "on-hold"]
+	 *
+	 * @param string $stored_status Status that the order is saved with.
+	 * @param string $new_status    Status set in memory before the coupon is applied.
+	 */
+	public function test_apply_coupon_counts_once_when_its_save_changes_the_status( string $stored_status, string $new_status ): void {
+		WC_Helper_Coupon::create_coupon( 'count-once' );
+		$order = WC_Helper_Order::create_order();
+		$order->set_status( $stored_status );
+		$order->save();
+		$order = wc_get_order( $order->get_id() );
+
+		$order->set_status( $new_status );
+		$order->apply_coupon( 'count-once' );
+		$this->assertSame( 1, ( new WC_Coupon( 'count-once' ) )->get_usage_count(), 'The coupon should be counted once.' );
+
+		$order->remove_coupon( 'count-once' );
+		$this->assertSame( 0, ( new WC_Coupon( 'count-once' ) )->get_usage_count(), 'Removing the coupon should give the use back.' );
+	}
 }
diff --git a/plugins/woocommerce/tests/php/includes/class-wc-webhook-tests.php b/plugins/woocommerce/tests/php/includes/class-wc-webhook-tests.php
index f32f5c9ee49..d56da3088b3 100644
--- a/plugins/woocommerce/tests/php/includes/class-wc-webhook-tests.php
+++ b/plugins/woocommerce/tests/php/includes/class-wc-webhook-tests.php
@@ -744,19 +744,15 @@ class WC_Webhook_Test extends WC_Unit_Test_Case {
 		$webhook = $this->create_active_webhook( 'product.updated' );
 		$webhook->save();

-		$requests = 0;
 		add_filter(
 			'pre_http_request',
-			function () use ( $response_code, &$requests ) {
-				++$requests;
+			function () use ( $response_code ) {
 				return $this->mock_http_response( $response_code );
 			}
 		);

 		$result = $webhook->deliver_ping();

-		$this->assertSame( 1, $requests, 'The ping should send one request, and its save should not ping again.' );
-
 		if ( $expect_success ) {
 			$this->assertTrue( $result, "A ping answered with {$response_code} should succeed." );
 		} else {
@@ -1435,221 +1431,4 @@ class WC_Webhook_Test extends WC_Unit_Test_Case {
 		$this->assertSame( array(), $other_deliveries, 'A webhook registered on another site must not deliver.' );
 		$this->assertTrue( is_user_member_of_blog( $user_id, $other_site_id ) );
 	}
-
-	/**
-	 * @testdox A class that overrides log_delivery() keeps working through it, and stage_delivery_result() refuses it.
-	 */
-	public function test_stage_delivery_result_refuses_a_class_that_has_not_adopted_it() {
-		// phpcs:disable Squiz.Commenting.FunctionComment.Missing, Generic.CodeAnalysis.UselessOverridingMethod.Found
-		$webhook = new class() extends WC_Webhook {
-			public function log_delivery( $delivery_id, $request, $response, $duration ) {
-				parent::log_delivery( $delivery_id, $request, $response, $duration );
-			}
-		};
-		// phpcs:enable Squiz.Commenting.FunctionComment.Missing, Generic.CodeAnalysis.UselessOverridingMethod.Found
-		$webhook->set_status( 'active' );
-		$webhook->set_topic( 'order.created' );
-		$webhook->set_delivery_url( 'https://example.com/webhook' );
-		$webhook->set_user_id( 1 );
-		$webhook->set_failure_count( 0 );
-		$webhook->save();
-
-		// Saving an active webhook with a pending delivery pings its URL; answer locally.
-		$this->http_responder = fn() => $this->mock_http_response( 200 );
-
-		$response = array(
-			'response' => array(
-				'code'    => 500,
-				'message' => 'Internal Server Error',
-			),
-			'headers'  => array(),
-			'body'     => '',
-		);
-		$request  = array(
-			'method'     => 'POST',
-			'headers'    => array(),
-			'body'       => '',
-			'user-agent' => 'test',
-		);
-		$webhook->log_delivery( 'delivery', $request, $response, 0.1 );
-		$this->assertSame( 1, wc_get_webhook( $webhook->get_id() )->get_failure_count() );
-
-		try {
-			$webhook->stage_delivery_result( 500 );
-			$this->fail( 'stage_delivery_result() did not refuse the class.' );
-		} catch ( WC_Data_Exception $e ) {
-			$this->assertSame( 'woocommerce_data_staging_unsupported', $e->getErrorCode() );
-			$this->assertStringContainsString( 'stage_delivery_result()', $e->getMessage() );
-		}
-	}
-
-	/**
-	 * @testdox No stage method of WC_Webhook sends an HTTP request.
-	 */
-	public function test_stage_methods_send_no_request(): void {
-		$webhook = $this->create_active_webhook( 'order.created' );
-		$webhook->save();
-
-		$requests = array();
-		add_filter(
-			'pre_http_request',
-			function ( $response, $args, $url ) use ( &$requests ) {
-				$requests[] = $url;
-				return $this->mock_http_response( 200 );
-			},
-			10,
-			3
-		);
-
-		$args_by_method = array( 'stage_delivery_result' => array( 500 ) );
-		foreach ( get_class_methods( WC_Webhook::class ) as $method ) {
-			if ( 0 === strpos( $method, 'stage_' ) ) {
-				$webhook->$method( ...( $args_by_method[ $method ] ?? array() ) );
-				$this->assertSame( array(), $requests, "{$method}() must only change the webhook in memory." );
-			}
-		}
-	}
-
-	/**
-	 * @testdox stage_delivery_result() counts a failure in memory, and the next save writes it.
-	 */
-	public function test_stage_delivery_result_changes_the_webhook_in_memory_only() {
-		$webhook = new WC_Webhook();
-		$webhook->set_status( 'active' );
-		$webhook->set_topic( 'order.created' );
-		$webhook->set_delivery_url( 'https://example.com/webhook' );
-		$webhook->set_user_id( 1 );
-		$webhook->set_failure_count( 0 );
-		$webhook->save();
-
-		// Saving an active webhook with a pending delivery pings its URL; answer locally.
-		$this->http_responder = fn() => $this->mock_http_response( 200 );
-
-		$webhook->stage_delivery_result( 500 );
-		$this->assertSame( 1, $webhook->get_failure_count() );
-		$this->assertSame( 0, wc_get_webhook( $webhook->get_id() )->get_failure_count() );
-
-		$webhook->save();
-		$this->assertSame( 1, wc_get_webhook( $webhook->get_id() )->get_failure_count() );
-
-		$webhook->stage_delivery_result( 200 );
-		$webhook->save();
-		$this->assertSame( 0, wc_get_webhook( $webhook->get_id() )->get_failure_count() );
-	}
-
-	/**
-	 * @testdox stage_delivery_result() leaves the disabled action to the next save, which fires it after the write.
-	 */
-	public function test_stage_delivery_result_fires_the_disabled_action_after_the_write() {
-		$webhook = new WC_Webhook();
-		$webhook->set_status( 'active' );
-		$webhook->set_topic( 'order.created' );
-		$webhook->set_delivery_url( 'https://example.com/webhook' );
-		$webhook->set_user_id( 1 );
-		$webhook->set_failure_count( 6 );
-		$webhook->save();
-
-		$statuses = array();
-		$listener = static function ( $webhook_id ) use ( &$statuses ) {
-			$statuses[] = wc_get_webhook( $webhook_id )->get_status();
-		};
-		add_action( 'woocommerce_webhook_disabled_due_delivery_failures', $listener );
-
-		$webhook->stage_delivery_result( 500 );
-		$this->assertSame( 'disabled', $webhook->get_status() );
-		$this->assertSame( array(), $statuses );
-
-		$webhook->save();
-		$webhook->save();
-
-		remove_action( 'woocommerce_webhook_disabled_due_delivery_failures', $listener );
-		$this->assertSame( array( 'disabled' ), $statuses );
-	}
-
-	/**
-	 * @testdox log_delivery() after a staged disable fires the disabled action once.
-	 */
-	public function test_log_delivery_after_a_staged_disable_fires_the_disabled_action_once() {
-		$webhook = $this->create_failing_webhook();
-		$fired   = did_action( 'woocommerce_webhook_disabled_due_delivery_failures' );
-
-		$webhook->stage_delivery_result( 500 );
-		$webhook->log_delivery( 1, $this->delivery_request(), new WP_Error( 'http_request_failed', 'Failed' ), 0.1 );
-		$webhook->save();
-
-		$this->assertSame( 1, did_action( 'woocommerce_webhook_disabled_due_delivery_failures' ) - $fired );
-	}
-
-	/**
-	 * @testdox save() does not fire the disabled action when a status change replaced the staged disable.
-	 */
-	public function test_save_skips_the_disabled_action_when_the_webhook_is_active_again() {
-		$webhook = $this->create_failing_webhook();
-		$fired   = did_action( 'woocommerce_webhook_disabled_due_delivery_failures' );
-
-		$this->http_responder = fn() => $this->mock_http_response( 200 );
-
-		$webhook->stage_delivery_result( 500 );
-		$webhook->set_status( 'active' );
-		$webhook->save();
-
-		$this->assertSame( 0, did_action( 'woocommerce_webhook_disabled_due_delivery_failures' ) - $fired );
-	}
-
-	/**
-	 * Create a saved, active webhook that the next failed delivery disables.
-	 *
-	 * @return WC_Webhook
-	 */
-	private function create_failing_webhook(): WC_Webhook {
-		$webhook = new WC_Webhook();
-		$webhook->set_status( 'active' );
-		$webhook->set_topic( 'order.created' );
-		$webhook->set_delivery_url( 'https://example.com/webhook' );
-		$webhook->set_user_id( 1 );
-		$webhook->set_failure_count( 6 );
-		$webhook->save();
-
-		return $webhook;
-	}
-
-	/**
-	 * Build the request array that log_delivery() reads.
-	 *
-	 * @return array
-	 */
-	private function delivery_request(): array {
-		return array(
-			'method'     => 'POST',
-			'user-agent' => 'WooCommerce',
-			'headers'    => array(),
-			'body'       => '',
-		);
-	}
-
-	/**
-	 * @testdox log_delivery() fires the disabled action right away, before it saves.
-	 */
-	public function test_log_delivery_fires_the_disabled_action_once() {
-		$webhook = new WC_Webhook();
-		$webhook->set_status( 'active' );
-		$webhook->set_topic( 'order.created' );
-		$webhook->set_delivery_url( 'https://example.com/webhook' );
-		$webhook->set_user_id( 1 );
-		$webhook->set_failure_count( 6 );
-		$webhook->save();
-		$fired = did_action( 'woocommerce_webhook_disabled_due_delivery_failures' );
-
-		$request = array(
-			'method'     => 'POST',
-			'user-agent' => 'WooCommerce',
-			'headers'    => array(),
-			'body'       => '',
-		);
-		$webhook->log_delivery( 1, $request, new WP_Error( 'http_request_failed', 'Failed' ), 0.1 );
-		$webhook->save();
-
-		$this->assertSame( 1, did_action( 'woocommerce_webhook_disabled_due_delivery_failures' ) - $fired );
-		$this->assertSame( 'disabled', wc_get_webhook( $webhook->get_id() )->get_status() );
-	}
 }
diff --git a/plugins/woocommerce/tests/php/src/Internal/Abilities/Domain/OrderCreateTest.php b/plugins/woocommerce/tests/php/src/Internal/Abilities/Domain/OrderCreateTest.php
index a233a5e926f..a7fe315c8f8 100644
--- a/plugins/woocommerce/tests/php/src/Internal/Abilities/Domain/OrderCreateTest.php
+++ b/plugins/woocommerce/tests/php/src/Internal/Abilities/Domain/OrderCreateTest.php
@@ -261,31 +261,6 @@ class OrderCreateTest extends WC_Unit_Test_Case {
 		$this->assertNull( $order->get_date_paid() );
 	}

-	/**
-	 * @testdox Should return the saved order, not changes that a listener made in memory after the only save, with the feature on.
-	 */
-	public function test_returns_the_saved_order(): void {
-		$this->set_feature( true );
-		$product = WC_Helper_Product::create_simple_product();
-		add_action(
-			'woocommerce_after_order_object_save',
-			static function ( \WC_Order $order ): void {
-				$order->set_billing_email( 'unsaved@example.com' );
-			}
-		);
-
-		$result = $this->execute(
-			array(
-				'billing'    => array( 'email' => 'ana@example.com' ),
-				'line_items' => array( array( 'product_id' => $product->get_id() ) ),
-			)
-		);
-
-		$this->assertSame( 'ana@example.com', $result['order']['billing_email'] );
-		$this->assertArrayHasKey( 'date_modified', $result['order'] );
-		$this->assertCount( 1, $result['order']['line_items'] );
-	}
-
 	/**
 	 * @testdox Should roll back the saved order when its status cannot be set with the feature off.
 	 */
diff --git a/plugins/woocommerce/tests/php/src/Internal/AbilitiesApi/ExtensibleAbilitiesTest.php b/plugins/woocommerce/tests/php/src/Internal/AbilitiesApi/ExtensibleAbilitiesTest.php
index 1c13d40700f..515dd1093bf 100644
--- a/plugins/woocommerce/tests/php/src/Internal/AbilitiesApi/ExtensibleAbilitiesTest.php
+++ b/plugins/woocommerce/tests/php/src/Internal/AbilitiesApi/ExtensibleAbilitiesTest.php
@@ -3396,11 +3396,9 @@ class ExtensibleAbilitiesTest extends \WC_REST_Unit_Test_Case {
 	}

 	/**
-	 * @testdox Should write extension fields in product create and in order status update.
+	 * @testdox Should accept extension fields in product create, and none in the order write abilities.
 	 */
-	public function test_product_create_and_order_status_update_write_fields(): void {
-		$order = \WC_Helper_Order::create_order();
-
+	public function test_product_create_writes_fields_and_order_abilities_do_not(): void {
 		$created = $this->run_ability(
 			'woocommerce/product-create',
 			array(
@@ -3408,20 +3406,52 @@ class ExtensibleAbilitiesTest extends \WC_REST_Unit_Test_Case {
 				'extensions' => array( 'test-ext' => array( 'color' => 'blue' ) ),
 			)
 		);
-		$updated = $this->run_ability(
+
+		$this->assertSame( 'blue', wc_get_product( $created['product']['id'] )->get_meta( '_test_color' ) );
+		foreach ( array( 'woocommerce/order-create', 'woocommerce/order-update', 'woocommerce/order-update-status' ) as $name ) {
+			$this->assertArrayNotHasKey( 'extensions', $this->get_ability( $name )['input_schema']['properties'], $name );
+		}
+	}
+
+	/**
+	 * @testdox Should run no order validator and no order sync in order-create, order-update and order-update-status.
+	 */
+	public function test_order_write_abilities_run_no_validators_and_no_syncs(): void {
+		$calls = 0;
+		$count = static function () use ( &$calls ) {
+			++$calls;
+			return null;
+		};
+		$this->register_validator( 'order', 'test-ext', $count );
+		$this->register_sync( 'order', 'test-ext', $count );
+		$this->reset_registries();
+		AbilitiesLoader::init_extensions();
+		$product = \WC_Helper_Product::create_simple_product();
+		$order   = \WC_Helper_Order::create_order();
+
+		$created = $this->run_ability_response(
+			'woocommerce/order-create',
+			array( 'line_items' => array( array( 'product_id' => $product->get_id() ) ) )
+		);
+		$updated = $this->run_ability_response(
+			'woocommerce/order-update',
+			array(
+				'id'       => $order->get_id(),
+				'shipping' => array( 'city' => 'Lisbon' ),
+			)
+		);
+		$status  = $this->run_ability_response(
 			'woocommerce/order-update-status',
 			array(
-				'id'         => $order->get_id(),
-				'status'     => 'on-hold',
-				'extensions' => array( 'test-ext' => array( 'gift_message' => 'Happy birthday' ) ),
+				'id'     => $order->get_id(),
+				'status' => 'on-hold',
 			)
 		);

-		$saved = wc_get_order( $order->get_id() );
-		$this->assertSame( 'blue', wc_get_product( $created['product']['id'] )->get_meta( '_test_color' ) );
-		$this->assertSame( 'on-hold', $saved->get_status() );
-		$this->assertSame( 'Happy birthday', $saved->get_meta( '_test_gift_message' ) );
-		$this->assertSame( 'Happy birthday', $updated['order']['extensions']['test-ext']['gift_message'] );
+		$this->assertSame( 200, $created->get_status() );
+		$this->assertSame( 200, $updated->get_status() );
+		$this->assertSame( 200, $status->get_status() );
+		$this->assertSame( 0, $calls );
 	}

 	/**
@@ -5032,9 +5062,9 @@ class ExtensibleAbilitiesTest extends \WC_REST_Unit_Test_Case {
 	}

 	/**
-	 * @testdox Should call WC_Order::update_status() with the feature off, and refuse an order class that only overrides it with the feature on.
+	 * @testdox Should call WC_Order::update_status() with the feature off and on.
 	 */
-	public function test_the_feature_off_path_calls_update_status(): void {
+	public function test_order_update_status_calls_update_status(): void {
 		$calls        = 0;
 		$order_class  = get_class(
 			new class() extends \WC_Order {
@@ -5076,17 +5106,9 @@ class ExtensibleAbilitiesTest extends \WC_REST_Unit_Test_Case {
 				)
 			);

-			$calls = $order_class::$calls;
-			if ( $enabled ) {
-				$this->assertSame( 400, $response->get_status() );
-				$this->assertSame( 'woocommerce_data_staging_unsupported', $response->get_data()['code'] );
-				$this->assertSame( 0, $calls );
-				$this->assertSame( 'pending', wc_get_order( $order->get_id() )->get_status() );
-			} else {
-				$this->assertSame( 200, $response->get_status() );
-				$this->assertSame( 1, $calls );
-				$this->assertSame( 'completed', wc_get_order( $order->get_id() )->get_status() );
-			}
+			$this->assertSame( 200, $response->get_status() );
+			$this->assertSame( 1, $order_class::$calls );
+			$this->assertSame( 'completed', wc_get_order( $order->get_id() )->get_status() );
 		}
 	}

@@ -5327,8 +5349,6 @@ class ExtensibleAbilitiesTest extends \WC_REST_Unit_Test_Case {
 			$this->assertSame( 2, substr_count( wp_json_encode( $schema ), '"color"' ) );
 			$this->assertArrayNotHasKey( 'oneOf', $schema );
 		}
-		$order = $this->get_ability( 'woocommerce/order-update-status' )['input_schema'];
-		$this->assertSame( array( 'string', 'null' ), array_column( $order['properties']['extensions']['properties']['test-ext']['properties']['gift_message']['anyOf'], 'type' ) );
 		$delete = $this->get_ability( 'woocommerce/product-delete' )['input_schema'];
 		$this->assertArrayNotHasKey( 'extensions', $delete['properties'], 'A delete writes no extension fields.' );
 	}
@@ -6209,224 +6229,8 @@ class ExtensibleAbilitiesTest extends \WC_REST_Unit_Test_Case {
 		$this->assertSame( 'woocommerce_invalid_product_type', $refused->get_data()['code'] );
 	}

-	/**
-	 * @testdox Should write an order extension field and the shipping address in one save, and save nothing when a validator refuses.
-	 */
-	public function test_order_update_writes_extension_fields_and_runs_validators(): void {
-		$this->add_test_action(
-			'woocommerce_extensible_abilities_init',
-			static function () {
-				ExtensibleAbilities::register_field(
-					array(
-						'resource'      => 'order',
-						'namespace'     => 'test-ext',
-						'field'         => 'priority',
-						'output_schema' => array( 'type' => 'string' ),
-						'input_schema'  => array( 'type' => 'string' ),
-						'get_callback'  => static function ( \WC_Order $order ) {
-							return $order->get_meta( '_test_priority' );
-						},
-						'set_callback'  => static function ( \WC_Order $order, $value ) {
-							$order->update_meta_data( '_test_priority', $value );
-						},
-					)
-				);
-			}
-		);
-		$this->register_validator(
-			'order',
-			'test-ext',
-			static function ( \WC_Order $order ) {
-				return 'Closed' === $order->get_shipping_city() ? new \WP_Error( 'test_refused', 'Refused.' ) : null;
-			}
-		);
-		$this->reset_registries();
-		AbilitiesLoader::init_extensions();
-		$order = \WC_Helper_Order::create_order();
-		$saves = 0;
-		$count = static function () use ( &$saves ) {
-			++$saves;
-		};
-		$this->add_test_action( 'woocommerce_update_order', $count );
-
-		$output  = $this->run_ability(
-			'woocommerce/order-update',
-			array(
-				'id'         => $order->get_id(),
-				'shipping'   => array( 'city' => 'Lisbon' ),
-				'extensions' => array( 'test-ext' => array( 'priority' => 'high' ) ),
-			)
-		);
-		$refused = $this->run_ability_response(
-			'woocommerce/order-update',
-			array(
-				'id'         => $order->get_id(),
-				'shipping'   => array( 'city' => 'Closed' ),
-				'extensions' => array( 'test-ext' => array( 'priority' => 'low' ) ),
-			)
-		);
-
-		wp_cache_flush();
-		$saved = wc_get_order( $order->get_id() );
-		$this->assertSame( 1, $saves );
-		$this->assertSame( 'high', $output['order']['extensions']['test-ext']['priority'] );
-		$this->assertSame( 400, $refused->get_status() );
-		$this->assertSame( 'test-ext:test_refused', $refused->get_data()['code'] );
-		$this->assertSame( 'Lisbon', $saved->get_shipping_city() );
-		$this->assertSame( 'high', $saved->get_meta( '_test_priority' ) );
-	}
-
-	/**
-	 * @testdox Should create an order with an extension field in one save, show validators the sent status, and create nothing when a validator refuses.
-	 */
-	public function test_order_create_writes_extension_fields_and_runs_validators(): void {
-		$this->add_test_action(
-			'woocommerce_extensible_abilities_init',
-			static function () {
-				ExtensibleAbilities::register_field(
-					array(
-						'resource'      => 'order',
-						'namespace'     => 'test-ext',
-						'field'         => 'priority',
-						'output_schema' => array( 'type' => 'string' ),
-						'input_schema'  => array( 'type' => 'string' ),
-						'get_callback'  => static function ( \WC_Order $order ) {
-							return $order->get_meta( '_test_priority' );
-						},
-						'set_callback'  => static function ( \WC_Order $order, $value ) {
-							$order->update_meta_data( '_test_priority', $value );
-						},
-					)
-				);
-			}
-		);
-		$seen = array();
-		$this->register_validator(
-			'order',
-			'test-ext',
-			static function ( \WC_Order $order ) use ( &$seen ) {
-				$seen[] = array( $order->get_status(), count( $order->get_items() ), $order->get_total() );
-				return 'Closed' === $order->get_shipping_city() ? new \WP_Error( 'test_refused', 'Refused.' ) : null;
-			}
-		);
-		$this->reset_registries();
-		AbilitiesLoader::init_extensions();
-		$product = \WC_Helper_Product::create_simple_product( true, array( 'regular_price' => '10' ) );
-		$writes  = array(
-			'woocommerce_new_order'    => 0,
-			'woocommerce_update_order' => 0,
-		);
-		foreach ( array_keys( $writes ) as $hook ) {
-			$this->add_test_action(
-				$hook,
-				static function () use ( &$writes, $hook ) {
-					++$writes[ $hook ];
-				}
-			);
-		}
-		$before = wc_get_orders(
-			array(
-				'limit'  => -1,
-				'return' => 'ids',
-			)
-		);
-
-		$output  = $this->run_ability(
-			'woocommerce/order-create',
-			array(
-				'status'     => 'processing',
-				'shipping'   => array( 'city' => 'Lisbon' ),
-				'line_items' => array( array( 'product_id' => $product->get_id() ) ),
-				'extensions' => array( 'test-ext' => array( 'priority' => 'high' ) ),
-			)
-		);
-		$refused = $this->run_ability_response(
-			'woocommerce/order-create',
-			array(
-				'shipping'   => array( 'city' => 'Closed' ),
-				'line_items' => array( array( 'product_id' => $product->get_id() ) ),
-				'extensions' => array( 'test-ext' => array( 'priority' => 'low' ) ),
-			)
-		);
-
-		wp_cache_flush();
-		$saved = wc_get_order( $output['order']['id'] );
-		$this->assertSame( 1, $writes['woocommerce_new_order'] );
-		$this->assertSame( 0, $writes['woocommerce_update_order'], 'The order should save once, with its lines, totals and status.' );
-		$this->assertSame( array( 'processing', 1, '10.00' ), $seen[0], 'The validator should see the status and totals that the save writes.' );
-		$this->assertSame( 'high', $output['order']['extensions']['test-ext']['priority'] );
-		$this->assertSame( 'high', $saved->get_meta( '_test_priority' ) );
-		$this->assertSame( 400, $refused->get_status() );
-		$this->assertSame( 'test-ext:test_refused', $refused->get_data()['code'] );
-		$this->assertEqualsCanonicalizing(
-			array_merge( $before, array( $saved->get_id() ) ),
-			wc_get_orders(
-				array(
-					'limit'  => -1,
-					'return' => 'ids',
-				)
-			),
-			'The refused call should create no order.'
-		);
-	}
-
-	/**
-	 * @testdox Should show an order validator the saved address fields that Core refuses, and save nothing.
-	 */
-	public function test_an_order_validator_sees_the_saved_values_of_refused_address_fields(): void {
-		$seen = array();
-		$this->register_validator(
-			'order',
-			'test-ext',
-			static function ( \WC_Order $order ) use ( &$seen ) {
-				$seen[] = array( $order->get_shipping_country(), $order->get_shipping_state(), $order->get_shipping_postcode(), $order->get_shipping_city() );
-				return null;
-			}
-		);
-		$this->reset_registries();
-		AbilitiesLoader::init_extensions();
-		$order = \WC_Helper_Order::create_order();
-		$order->set_shipping_country( 'US' );
-		$order->set_shipping_state( 'CA' );
-		$order->set_shipping_postcode( '94110' );
-		$order->set_shipping_city( 'Before' );
-		$order->save();

-		$bad_country  = $this->run_ability_response(
-			'woocommerce/order-update',
-			array(
-				'id'       => $order->get_id(),
-				'shipping' => array(
-					'country'  => 'XX',
-					'state'    => 'ZZ',
-					'postcode' => 'nope',
-					'city'     => 'After',
-				),
-			)
-		);
-		$bad_postcode = $this->run_ability_response(
-			'woocommerce/order-update',
-			array(
-				'id'       => $order->get_id(),
-				'shipping' => array(
-					'postcode' => 'not a zip',
-					'city'     => 'After',
-				),
-			)
-		);

-		$this->assertSame( 400, $bad_country->get_status() );
-		$this->assertSame( 400, $bad_postcode->get_status() );
-		$this->assertSame(
-			array(
-				array( 'US', 'CA', '94110', 'After' ),
-				array( 'US', 'CA', '94110', 'After' ),
-			),
-			$seen
-		);
-		wp_cache_flush();
-		$this->assertSame( 'Before', wc_get_order( $order->get_id() )->get_shipping_city() );
-	}

 	/**
 	 * @testdox Should recalculate with calculate_totals() after the save when the feature is off.
@@ -6453,14 +6257,13 @@ class ExtensibleAbilitiesTest extends \WC_REST_Unit_Test_Case {
 		$order->save();

 		$calls  = array();
-		$record = static function ( $and_taxes, $listened, $staged ) use ( &$calls ) {
+		$record = static function ( $and_taxes, $listened ) use ( &$calls ) {
 			$calls[] = array(
-				'staged'   => $staged,
 				'quantity' => array_sum( array_map( static fn( $item ) => $item->get_quantity(), wc_get_order( $listened->get_id() )->get_items() ) ),
 				'tax_ids'  => array_map( static fn( $tax ) => $tax->get_id(), array_values( $listened->get_taxes() ) ),
 			);
 		};
-		add_action( 'woocommerce_order_after_calculate_totals', $record, 10, 3 );
+		add_action( 'woocommerce_order_after_calculate_totals', $record, 10, 2 );

 		$result = wp_get_ability( 'woocommerce/order-update' )->execute(
 			array(
@@ -6478,124 +6281,17 @@ class ExtensibleAbilitiesTest extends \WC_REST_Unit_Test_Case {

 		$this->assertNotWPError( $result );
 		$this->assertCount( 1, $calls );
-		$this->assertFalse( $calls[0]['staged'] );
 		$this->assertSame( 3, $calls[0]['quantity'] );
 		$this->assertGreaterThan( 0, $calls[0]['tax_ids'][0] );
 		$this->assertSame( '33.00', wc_get_order( $order->get_id() )->get_total() );
 	}

-	/**
-	 * @testdox Should save no line change and fire no totals action when a validator refuses, and fire it staged once when the change saves.
-	 */
-	public function test_order_update_refusal_saves_no_line_change(): void {
-		$this->register_validator(
-			'order',
-			'test-ext',
-			static function ( \WC_Order $order ) {
-				return count( $order->get_shipping_methods() ) === 0 ? new \WP_Error( 'test_refused', 'Keep one shipping line.' ) : null;
-			}
-		);
-		$this->reset_registries();
-		AbilitiesLoader::init_extensions();
-		$order = \WC_Helper_Order::create_order();
-		$order->set_status( 'pending' );
-		$order->save();
-		$shipping_id = array_key_first( $order->get_shipping_methods() );
-		$total       = $order->get_total();
-		$staged      = array();
-		$record      = static function ( $and_taxes, $order, $is_staged = false ) use ( &$staged ) {
-			$staged[] = $is_staged;
-		};
-		add_action( 'woocommerce_order_after_calculate_totals', $record, 10, 3 );
-
-		$refused = $this->run_ability_response(
-			'woocommerce/order-update',
-			array(
-				'id'           => $order->get_id(),
-				'remove_items' => array( $shipping_id ),
-			)
-		);
-
-		wp_cache_flush();
-		$saved = wc_get_order( $order->get_id() );
-		$this->assertSame( 'test-ext:test_refused', $refused->get_data()['code'] );
-		$this->assertArrayHasKey( $shipping_id, $saved->get_shipping_methods() );
-		$this->assertSame( $total, $saved->get_total() );
-		$this->assertSame( array(), $staged );
-
-		$saves = 0;
-		$count = static function () use ( &$saves ) {
-			++$saves;
-		};
-		add_action( 'woocommerce_update_order', $count );
-
-		$output = $this->run_ability(
-			'woocommerce/order-update',
-			array(
-				'id'             => $order->get_id(),
-				'shipping_lines' => array(
-					array(
-						'id'    => $shipping_id,
-						'total' => '25.00',
-					),
-				),
-			)
-		);
-
-		remove_action( 'woocommerce_update_order', $count );
-		remove_action( 'woocommerce_order_after_calculate_totals', $record, 10 );
-		$this->assertSame( 1, $saves );
-		$this->assertSame( array( true ), $staged );
-		$this->assertSame( '25.00', wc_format_decimal( $output['order']['shipping_lines'][0]['total'], 2 ) );
-	}
-
-	/**
-	 * @testdox Should refuse a line change, and save nothing, when the order class overrides add_product() without its twin.
-	 */
-	public function test_order_update_refuses_class_without_stage_twin(): void {
-		$order = \WC_Helper_Order::create_order();
-		$order->set_status( 'pending' );
-		$order->save();
-		$order_class  = get_class(
-			new class() extends \WC_Order {
-				/**
-				 * Add a product with a rule of this class.
-				 *
-				 * @param \WC_Product $product Product.
-				 * @param int         $qty     Quantity.
-				 * @param array       $args    Arguments.
-				 * @return int
-				 */
-				public function add_product( $product, $qty = 1, $args = array() ) { // phpcs:ignore Generic.CodeAnalysis.UselessOverridingMethod.Found -- The test needs an add_product() override without a stage_product_item() twin.
-					return parent::add_product( $product, $qty, $args );
-				}
-			}
-		);
-		$filter_class = static fn() => $order_class;
-		add_filter( 'woocommerce_order_class', $filter_class, 100 );
-		$product      = \WC_Helper_Product::create_simple_product();
-		$count        = count( $order->get_items() );
-
-		$refused = $this->run_ability_response(
-			'woocommerce/order-update',
-			array(
-				'id'         => $order->get_id(),
-				'line_items' => array( array( 'product_id' => $product->get_id() ) ),
-			)
-		);

-		remove_filter( 'woocommerce_order_class', $filter_class, 100 );
-		$this->assertSame( 400, $refused->get_status() );
-		$this->assertSame( 'woocommerce_data_staging_unsupported', $refused->get_data()['code'] );
-		$this->assertStringContainsString( 'stage_product_item', $refused->get_data()['message'] );
-		$this->assertCount( $count, ( new \WC_Order( $order->get_id() ) )->get_items() );
-	}

 	/**
-	 * @testdox Should add a product line through add_product() of a class without the stage twin when the feature is off, and save nothing when a later line is refused.
+	 * @testdox Should add a product line through add_product() of the order class, and save nothing when a later line is refused.
 	 */
-	public function test_order_update_falls_back_to_add_product_with_the_feature_off(): void {
-		$this->set_feature( false );
+	public function test_order_update_adds_lines_with_add_product(): void {
 		$order = \WC_Helper_Order::create_order();
 		$order->set_status( 'pending' );
 		$order->save();
@@ -6783,275 +6479,11 @@ class ExtensibleAbilitiesTest extends \WC_REST_Unit_Test_Case {
 		$this->assertSame( 'test-ext/order-status', $ability );
 	}

-	/**
-	 * @testdox Should stage the status on a plain order, so an order validator sees it, and save nothing or fire no status action when the validator refuses.
-	 */
-	public function test_an_order_validator_sees_the_staged_status(): void {
-		$order = \WC_Helper_Order::create_order();
-		$order->set_status( 'processing' );
-		$order->save();
-		$seen = array();
-		$this->register_validator(
-			'order',
-			'other_ext',
-			static function ( \WC_Order $subject ) use ( &$seen ) {
-				$seen[] = array( $subject->get_status(), $subject->get_meta( '_test_gift_message' ) );
-				if ( 'completed' === $subject->get_status() && 'Hi' === $subject->get_meta( '_test_gift_message' ) ) {
-					return new \WP_Error( 'test_gift_not_sent', 'Send the gift message first.' );
-				}
-				return null;
-			}
-		);
-		$edits   = did_action( 'woocommerce_order_edit_status' );
-		$changes = did_action( 'woocommerce_order_status_changed' );
-
-		$refused = $this->run_ability_response(
-			'woocommerce/order-update-status',
-			array(
-				'id'         => $order->get_id(),
-				'status'     => 'completed',
-				'extensions' => array( 'test-ext' => array( 'gift_message' => 'Hi' ) ),
-			)
-		);
-
-		$saved = wc_get_order( $order->get_id() );
-		$this->assertSame( 400, $refused->get_status() );
-		$this->assertStringEndsWith( 'test_gift_not_sent', $refused->get_data()['code'] );
-		$this->assertSame( 'processing', $saved->get_status() );
-		$this->assertFalse( $saved->meta_exists( '_test_gift_message' ) );
-		$this->assertSame( 0, did_action( 'woocommerce_order_edit_status' ) - $edits );
-		$this->assertSame( 0, did_action( 'woocommerce_order_status_changed' ) - $changes );
-
-		$this->run_ability(
-			'woocommerce/order-update-status',
-			array(
-				'id'         => $order->get_id(),
-				'status'     => 'completed',
-				'extensions' => array( 'test-ext' => array( 'gift_message' => 'Thanks' ) ),
-			)
-		);
-
-		$saved = wc_get_order( $order->get_id() );
-		$this->assertSame( 'completed', $saved->get_status() );
-		$this->assertSame( 'Thanks', $saved->get_meta( '_test_gift_message' ) );
-		$this->assertSame( 1, did_action( 'woocommerce_order_edit_status' ) - $edits );
-		$this->assertSame( 1, did_action( 'woocommerce_order_status_changed' ) - $changes );
-		$this->assertSame( array( array( 'completed', 'Hi' ), array( 'completed', 'Thanks' ) ), $seen );
-	}
-
-	/**
-	 * @testdox Should show the staged status and its completed date to an order validator, and fire woocommerce_order_edit_status before the write.
-	 */
-	public function test_an_order_validator_sees_the_dates_that_the_status_sets(): void {
-		$order = \WC_Helper_Order::create_order();
-		$seen  = array();
-		$this->register_validator(
-			'order',
-			'other_ext',
-			static function ( \WC_Order $data ) use ( &$seen ) {
-				$seen[] = array( $data->get_status(), null !== $data->get_date_completed( 'edit' ) );
-				return null;
-			}
-		);
-		$events   = array();
-		$listener = static function ( $order_id ) use ( &$events ) {
-			$events[] = wc_get_order( $order_id )->get_status();
-		};
-		add_action( 'woocommerce_order_edit_status', $listener );
-
-		$this->run_ability(
-			'woocommerce/order-update-status',
-			array(
-				'id'     => $order->get_id(),
-				'status' => 'completed',
-			)
-		);
-
-		remove_action( 'woocommerce_order_edit_status', $listener );
-		$this->assertSame( array( array( 'completed', true ) ), $seen );
-		$this->assertSame( array( 'pending' ), $events );
-		$this->assertSame( 'completed', wc_get_order( $order->get_id() )->get_status() );
-	}
-
-	/**
-	 * @testdox Should stage the status on an order class that overrides update_status() and stage_status(), with its rule, and refuse a subclass that overrides update_status() again.
-	 */
-	public function test_an_order_class_that_stages_keeps_its_rule(): void {
-		$order_class  = TestStagingOrder::class;
-		$filter_class = static function () use ( &$order_class ) {
-			return $order_class;
-		};
-		add_filter( 'woocommerce_order_class', $filter_class, 100 );
-		$order = \WC_Helper_Order::create_order();
-
-		$refused     = $this->run_ability_response(
-			'woocommerce/order-update-status',
-			array(
-				'id'     => $order->get_id(),
-				'status' => 'on-hold',
-			)
-		);
-		$updated     = $this->run_ability(
-			'woocommerce/order-update-status',
-			array(
-				'id'     => $order->get_id(),
-				'status' => 'processing',
-			)
-		);
-		$order_class = get_class(
-			new class() extends TestStagingOrder {
-				/**
-				 * Mark the order, then change the status.
-				 *
-				 * @param string $new_status    Status to change the order to.
-				 * @param string $note          Optional note.
-				 * @param bool   $manual_update Whether a person made the change.
-				 * @return bool
-				 */
-				public function update_status( $new_status, $note = '', $manual_update = false ) {
-					$this->update_meta_data( '_test_child_rule', 'yes' );
-					return parent::update_status( $new_status, $note, $manual_update );
-				}
-			}
-		);
-		$child       = \WC_Helper_Order::create_order();
-		$again       = $this->run_ability_response(
-			'woocommerce/order-update-status',
-			array(
-				'id'     => $child->get_id(),
-				'status' => 'completed',
-			)
-		);
-
-		remove_filter( 'woocommerce_order_class', $filter_class, 100 );
-		$this->assertSame( 409, $refused->get_status() );
-		$this->assertSame( 'test_on_hold_refused', $refused->get_data()['code'] );
-		$this->assertSame( 'processing', $updated['order']['status'] );
-		$this->assertSame( 400, $again->get_status() );
-		$this->assertSame( 'woocommerce_data_staging_unsupported', $again->get_data()['code'] );
-		$this->assertSame( 'processing', wc_get_order( $order->get_id() )->get_status() );
-		$this->assertSame( 'pending', wc_get_order( $child->get_id() )->get_status() );
-	}
-
-	/**
-	 * @testdox Should stage the status on an order class that overrides stage_status() only.
-	 */
-	public function test_an_order_class_that_overrides_stage_status_only_is_staged(): void {
-		$order_class  = get_class(
-			new class() extends \WC_Order {
-				/**
-				 * Mark the order, then stage the status.
-				 *
-				 * @param string       $new_status    Status to change the order to.
-				 * @param string|false $note          Optional note.
-				 * @param bool         $manual_update Whether a person made the change.
-				 * @return array
-				 */
-				public function stage_status( $new_status, $note = '', $manual_update = false ) {
-					$this->update_meta_data( '_test_staged', 'yes' );
-					return parent::stage_status( $new_status, $note, $manual_update );
-				}
-			}
-		);
-		$filter_class = static function () use ( $order_class ) {
-			return $order_class;
-		};
-		add_filter( 'woocommerce_order_class', $filter_class, 100 );
-		$order = \WC_Helper_Order::create_order();
-
-		$updated = $this->run_ability(
-			'woocommerce/order-update-status',
-			array(
-				'id'     => $order->get_id(),
-				'status' => 'completed',
-			)
-		);
-
-		remove_filter( 'woocommerce_order_class', $filter_class, 100 );
-		$this->assertSame( 'completed', $updated['order']['status'] );
-		$saved = wc_get_order( $order->get_id() );
-		$this->assertSame( 'completed', $saved->get_status() );
-		$this->assertSame( 'yes', $saved->get_meta( '_test_staged' ) );
-	}
-
-	/**
-	 * @testdox Should refuse an order class whose parent overrides update_status() without stage_status(), and name that parent.
-	 */
-	public function test_an_order_class_below_an_unstaged_parent_is_refused(): void {
-		$order_class  = get_class(
-			new class() extends TestUnstagedOrder {
-				/**
-				 * Mark the order, then stage the status.
-				 *
-				 * @param string       $new_status    Status to change the order to.
-				 * @param string|false $note          Optional note.
-				 * @param bool         $manual_update Whether a person made the change.
-				 * @return array
-				 */
-				public function stage_status( $new_status, $note = '', $manual_update = false ) {
-					$this->update_meta_data( '_test_staged', 'yes' );
-					return parent::stage_status( $new_status, $note, $manual_update );
-				}
-			}
-		);
-		$filter_class = static fn() => $order_class;
-		add_filter( 'woocommerce_order_class', $filter_class, 100 );
-		$order        = \WC_Helper_Order::create_order();

-		$response = $this->run_ability_response(
-			'woocommerce/order-update-status',
-			array(
-				'id'     => $order->get_id(),
-				'status' => 'completed',
-			)
-		);

-		remove_filter( 'woocommerce_order_class', $filter_class, 100 );
-		$this->assertSame( 400, $response->get_status() );
-		$this->assertSame( 'woocommerce_data_staging_unsupported', $response->get_data()['code'] );
-		$this->assertStringContainsString( TestUnstagedOrder::class, $response->get_data()['message'] );
-		$this->assertStringContainsString( 'stage_status()', $response->get_data()['message'] );
-		$this->assertSame( 'pending', wc_get_order( $order->get_id() )->get_status() );
-	}

-	/**
-	 * @testdox Should refuse an ability that calls a stage method on an order class that overrides the saving method only, and save nothing.
-	 */
-	public function test_any_ability_that_stages_refuses_an_unadopted_order_class(): void {
-		$order_class  = get_class(
-			new class() extends \WC_Order {
-				/**
-				 * Mark the order, then complete the payment.
-				 *
-				 * @param string $transaction_id Transaction ID.
-				 * @return bool
-				 */
-				public function payment_complete( $transaction_id = '' ) {
-					$this->update_meta_data( '_test_override', 'yes' );
-					return parent::payment_complete( $transaction_id );
-				}
-			}
-		);
-		$filter_class = static fn() => $order_class;
-		add_filter( 'woocommerce_order_class', $filter_class, 100 );
-		$this->register_order_status_ability( TestOrderStageAbility::class );
-		$this->reset_registries();
-		$order = \WC_Helper_Order::create_order();

-		$response = $this->run_ability_response(
-			'test-ext/order-status',
-			array(
-				'id'     => $order->get_id(),
-				'status' => 'completed',
-			)
-		);

-		remove_filter( 'woocommerce_order_class', $filter_class, 100 );
-		$this->assertSame( 400, $response->get_status() );
-		$this->assertSame( 'woocommerce_data_staging_unsupported', $response->get_data()['code'] );
-		$this->assertStringContainsString( 'stage_payment_complete()', $response->get_data()['message'] );
-		$this->assertSame( 'pending', wc_get_order( $order->get_id() )->get_status() );
-	}

 	/**
 	 * @testdox Should run a validator on the changed product, after the field callbacks, and save nothing when it refuses.
@@ -7508,36 +6940,6 @@ class ExtensibleAbilitiesTest extends \WC_REST_Unit_Test_Case {
 		$this->assertArrayNotHasKey( 'additional_data', $data['additional_errors'][0] );
 	}

-	/**
-	 * @testdox Should refuse a class outside WC_Data that overrides a saving method without its stage method.
-	 */
-	public function test_refuse_unstaged_override_works_for_a_class_outside_wc_data(): void {
-		$adopted   = new class() extends TestStagedService {
-			/**
-			 * Save an item.
-			 */
-			public function add_item(): void {}
-
-			/**
-			 * Stage an item.
-			 */
-			public function stage_item(): void {}
-		};
-		$unadopted = new class() extends TestStagedService {
-			/**
-			 * Save an item.
-			 */
-			public function add_item(): void {}
-		};
-
-		ExtensibleAbilities::refuse_unstaged_override( new TestStagedService(), 'add_item', 'stage_item' );
-		ExtensibleAbilities::refuse_unstaged_override( $adopted, 'add_item', 'stage_item' );
-
-		$this->expectException( \WC_Data_Exception::class );
-		$this->expectExceptionMessage( 'overrides add_item() and needs to override stage_item() too' );
-		ExtensibleAbilities::refuse_unstaged_override( $unadopted, 'add_item', 'stage_item' );
-	}
-
 	/**
 	 * @testdox Should not run validators with the feature off.
 	 */
diff --git a/plugins/woocommerce/tests/php/src/Internal/AbilitiesApi/TestOrderStageAbility.php b/plugins/woocommerce/tests/php/src/Internal/AbilitiesApi/TestOrderStageAbility.php
deleted file mode 100644
index 1173a1a3ddd..00000000000
--- a/plugins/woocommerce/tests/php/src/Internal/AbilitiesApi/TestOrderStageAbility.php
+++ /dev/null
@@ -1,26 +0,0 @@
-<?php
-/**
- * TestOrderStageAbility class file.
- */
-
-declare( strict_types=1 );
-
-namespace Automattic\WooCommerce\Tests\Internal\AbilitiesApi;
-
-/**
- * An extension's write ability that stages the payment of an order.
- */
-class TestOrderStageAbility extends TestOrderStatusAbility {
-
-	/**
-	 * Stage the payment.
-	 *
-	 * @param \WC_Order $subject Order.
-	 * @param array     $input   Ability input.
-	 * @return null
-	 */
-	public function change( $subject, array $input ) {
-		$subject->stage_payment_complete();
-		return null;
-	}
-}
diff --git a/plugins/woocommerce/tests/php/src/Internal/AbilitiesApi/TestStagedService.php b/plugins/woocommerce/tests/php/src/Internal/AbilitiesApi/TestStagedService.php
deleted file mode 100644
index fefbc6c3068..00000000000
--- a/plugins/woocommerce/tests/php/src/Internal/AbilitiesApi/TestStagedService.php
+++ /dev/null
@@ -1,20 +0,0 @@
-<?php
-declare( strict_types = 1 );
-
-namespace Automattic\WooCommerce\Tests\Internal\AbilitiesApi;
-
-/**
- * A class outside WC_Data with a saving method and its stage method.
- */
-class TestStagedService {
-
-	/**
-	 * Save an item.
-	 */
-	public function add_item(): void {}
-
-	/**
-	 * Stage an item.
-	 */
-	public function stage_item(): void {}
-}
diff --git a/plugins/woocommerce/tests/php/src/Internal/AbilitiesApi/TestStagingOrder.php b/plugins/woocommerce/tests/php/src/Internal/AbilitiesApi/TestStagingOrder.php
deleted file mode 100644
index 57bb3290a8b..00000000000
--- a/plugins/woocommerce/tests/php/src/Internal/AbilitiesApi/TestStagingOrder.php
+++ /dev/null
@@ -1,54 +0,0 @@
-<?php
-/**
- * TestStagingOrder class file.
- */
-
-declare( strict_types=1 );
-
-namespace Automattic\WooCommerce\Tests\Internal\AbilitiesApi;
-
-/**
- * An extension's order class that refuses on-hold in update_status() and in stage_status().
- */
-class TestStagingOrder extends \WC_Order {
-
-	/**
-	 * Refuse on-hold, then change the status.
-	 *
-	 * @param string $new_status    Status to change the order to.
-	 * @param string $note          Optional note.
-	 * @param bool   $manual_update Whether a person made the change.
-	 * @return bool
-	 * @throws \WC_Data_Exception When the order refuses the status.
-	 */
-	public function update_status( $new_status, $note = '', $manual_update = false ) {
-		$this->refuse_on_hold( $new_status );
-		return parent::update_status( $new_status, $note, $manual_update );
-	}
-
-	/**
-	 * Refuse on-hold, then stage the status.
-	 *
-	 * @param string       $new_status    Status to change the order to.
-	 * @param string|false $note          Optional note.
-	 * @param bool         $manual_update Whether a person made the change.
-	 * @return array
-	 * @throws \WC_Data_Exception When the order refuses the status.
-	 */
-	public function stage_status( $new_status, $note = '', $manual_update = false ) {
-		$this->refuse_on_hold( $new_status );
-		return parent::stage_status( $new_status, $note, $manual_update );
-	}
-
-	/**
-	 * Throw for on-hold.
-	 *
-	 * @param string $new_status Status to change the order to.
-	 * @throws \WC_Data_Exception When the status is on-hold.
-	 */
-	private function refuse_on_hold( $new_status ): void {
-		if ( 'on-hold' === $new_status ) {
-			throw new \WC_Data_Exception( 'test_on_hold_refused', 'Unable to change this order to "on-hold".', 409 );
-		}
-	}
-}
diff --git a/plugins/woocommerce/tests/php/src/Internal/AbilitiesApi/TestUnstagedOrder.php b/plugins/woocommerce/tests/php/src/Internal/AbilitiesApi/TestUnstagedOrder.php
deleted file mode 100644
index 1b7843f8358..00000000000
--- a/plugins/woocommerce/tests/php/src/Internal/AbilitiesApi/TestUnstagedOrder.php
+++ /dev/null
@@ -1,27 +0,0 @@
-<?php
-/**
- * TestUnstagedOrder class file.
- */
-
-declare( strict_types=1 );
-
-namespace Automattic\WooCommerce\Tests\Internal\AbilitiesApi;
-
-/**
- * An extension's order class that overrides update_status() and not stage_status().
- */
-class TestUnstagedOrder extends \WC_Order {
-
-	/**
-	 * Mark the order, then change the status.
-	 *
-	 * @param string $new_status    Status to change the order to.
-	 * @param string $note          Optional note.
-	 * @param bool   $manual_update Whether a person made the change.
-	 * @return bool
-	 */
-	public function update_status( $new_status, $note = '', $manual_update = false ) {
-		$this->update_meta_data( '_test_parent_rule', 'yes' );
-		return parent::update_status( $new_status, $note, $manual_update );
-	}
-}
diff --git a/plugins/woocommerce/tests/php/src/Internal/StockNotifications/NotificationTests.php b/plugins/woocommerce/tests/php/src/Internal/StockNotifications/NotificationTests.php
index 099fcb9fde0..1eac24435a2 100644
--- a/plugins/woocommerce/tests/php/src/Internal/StockNotifications/NotificationTests.php
+++ b/plugins/woocommerce/tests/php/src/Internal/StockNotifications/NotificationTests.php
@@ -266,60 +266,6 @@ class NotificationTests extends \WC_Unit_Test_Case {
 		$this->assertFalse( $notification->check_verification_key( 'invalid_key' ) );
 	}

-	/**
-	 * @testdox The stage key methods set the hash in memory and save nothing.
-	 */
-	public function test_stage_keys_save_nothing(): void {
-		$notification = new Notification();
-		$notification->set_product_id( 1 );
-		$notification->set_user_email( 'test@example.com' );
-		$notification->save();
-
-		$verification_key = $notification->stage_verification_key();
-		$unsubscribe_key  = $notification->stage_unsubscribe_key();
-		$this->assertTrue( $notification->check_verification_key( $verification_key ) );
-		$this->assertTrue( $notification->check_unsubscribe_key( $unsubscribe_key ) );
-
-		$stored = new Notification( $notification->get_id() );
-		$this->assertFalse( $stored->check_verification_key( $verification_key ) );
-		$this->assertFalse( $stored->check_unsubscribe_key( $unsubscribe_key ) );
-	}
-
-	/**
-	 * @testdox A class that overrides the key methods keeps working through them, and the stage methods refuse it.
-	 */
-	public function test_stage_keys_refuse_a_class_that_has_not_adopted_them(): void {
-		// phpcs:disable Squiz.Commenting.FunctionComment.Missing, Generic.CodeAnalysis.UselessOverridingMethod.Found
-		$notification = new class() extends Notification {
-			public function get_verification_key( bool $persist ): string {
-				return parent::get_verification_key( $persist );
-			}
-			public function get_unsubscribe_key( bool $persist ): string {
-				return parent::get_unsubscribe_key( $persist );
-			}
-		};
-		// phpcs:enable Squiz.Commenting.FunctionComment.Missing, Generic.CodeAnalysis.UselessOverridingMethod.Found
-		$notification->set_product_id( 1 );
-		$notification->set_user_email( 'test@example.com' );
-		$notification->save();
-
-		$verification_key = $notification->get_verification_key( true );
-		$unsubscribe_key  = $notification->get_unsubscribe_key( true );
-		$stored           = new Notification( $notification->get_id() );
-		$this->assertTrue( $stored->check_verification_key( $verification_key ) );
-		$this->assertTrue( $stored->check_unsubscribe_key( $unsubscribe_key ) );
-
-		foreach ( array( 'stage_verification_key', 'stage_unsubscribe_key' ) as $stage_method ) {
-			try {
-				$notification->$stage_method();
-				$this->fail( $stage_method . ' did not refuse the class.' );
-			} catch ( \WC_Data_Exception $e ) {
-				$this->assertSame( 'woocommerce_data_staging_unsupported', $e->getErrorCode() );
-				$this->assertStringContainsString( $stage_method . '()', $e->getMessage() );
-			}
-		}
-	}
-
 	/**
 	 * Test verification key persistence.
 	 */