Automattic\WooCommerce\Internal\DataStores\Orders

OrdersTableRefundDataStore::update()publicWC 1.0

Update refund in database.

Метод класса: OrdersTableRefundDataStore{}

No Hooks.

Return

null. Nothing.

Usage

$OrdersTableRefundDataStore = new OrdersTableRefundDataStore();
$OrdersTableRefundDataStore->update( $refund );
$refund(\WC_Order) (required) (passed by reference — &)
Refund object.

Code of OrdersTableRefundDataStore::update() WC 7.1.0

public function update( &$refund ) {
	$this->persist_updates( $refund );
}