Merged in feature/117-dev-dev01 (pull request #8)
auto-patch 117-dev-dev01-2023-12-15T16_09_06 * auto-patch 117-dev-dev01-2023-12-15T16_09_06
This commit is contained in:
@@ -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 */
|
||||
|
||||
Reference in New Issue
Block a user