woocommerce_order_status_ . $status_transition[to], $this->get_id(
woocommerce_order_status_ . $status_transition[to], $this->get_id(
Appears in: woocommerce.11.0.0
Hook Type: action
Displaying hooks found in version: woocommerce.11.0.0do_action('woocommerce_order_status_ . $status_transition[to], $this->get_id(') is found 1 times:
- /includes/class-wc-order.php line 457
* @type string|false $note Order note. False will skip adding a note entirely. * @type boolean $manual True if the order is manually changed. * } */ do_action( 'woocommerce_order_status_' . $status_transition['to'], $this->get_id(), $this, $status_transition ); // Add a status transition note unless `note` was explicitly set to false. if ( false !== $status_transition['note'] ) { if ( ! empty( $status_transition['from'] ) ) { // Skip notes if the from status was a draft. if ( ! in_array( $status_transition['from'], array( OrderStatus::DRAFT, OrderStatus::AUTO_DRAFT, OrderStatus::NEW, 'checkout-draft' ), true ) ) {