rebase on oct-10-2023

This commit is contained in:
Rachit Bhargava
2023-10-10 17:23:21 -04:00
parent d37566ffb6
commit d096058d7d
4789 changed files with 254611 additions and 307223 deletions

View File

@@ -108,6 +108,14 @@ class WC_Order extends WC_Abstract_Order {
'_new_order_email_sent',
);
/**
* Refunds for an order. Use {@see get_refunds()} instead.
*
* @deprecated 2.2.0
* @var stdClass|WC_Order[]
*/
public $refunds;
/**
* When a payment is complete this function is called.
*
@@ -798,7 +806,7 @@ class WC_Order extends WC_Abstract_Order {
}
/**
* Get transaction d.
* Get transaction id.
*
* @param string $context What the value is for. Valid values are view and edit.
* @return string
@@ -2278,4 +2286,13 @@ class WC_Order extends WC_Abstract_Order {
public function is_created_via( $modus ) {
return apply_filters( 'woocommerce_order_is_created_via', $modus === $this->get_created_via(), $this, $modus );
}
/**
* Attempts to restore the specified order back to its original status (after having been trashed).
*
* @return bool If the operation was successful.
*/
public function untrash(): bool {
return (bool) $this->data_store->untrash_order( $this );
}
}