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:
Tony Volpe
2023-12-15 16:10:57 +00:00
parent 0825f6bd5f
commit 3dc9eca989
1424 changed files with 28118 additions and 10097 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 */