rebase from live enviornment

This commit is contained in:
Rachit Bhargava
2024-01-09 22:14:20 -05:00
parent ff0b49a046
commit 3a22fcaa4a
15968 changed files with 2344674 additions and 45234 deletions

View File

@@ -392,7 +392,23 @@ class WC_Order extends WC_Abstract_Order {
if ( $status_transition ) {
try {
do_action( 'woocommerce_order_status_' . $status_transition['to'], $this->get_id(), $this );
/**
* Fires when order status is changed.
*
* @since 1.0.0
*
* @param int Order ID.
* @param WC_Order $order Order object.
* @param array $status_transition {
* Status transition data.
*
* @type string $from Order status from.
* @type string $to Order status to
* @type string $note Order note.
* @type boolean $manual True if the order is manually changed.
* }
*/
do_action( 'woocommerce_order_status_' . $status_transition['to'], $this->get_id(), $this, $status_transition );
if ( ! empty( $status_transition['from'] ) ) {
/* translators: 1: old order status 2: new order status */