woocommerce_order_status_

woocommerce_order_status_

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: action

See hook in core

Displaying hooks found in version: woocommerce.9.5.1

do_action('woocommerce_order_status_') is found 2 times:

  • /includes/class-wc-order.php line 437
    433
    434
    435
    436
    437
    438
    439
    440
    441
    442
    443
    *      @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 */
        $transition_note = sprintf( __( 'Order status changed from %1$s to %2$s.', 'woocommerce' ), wc_get_order_status_name( $status_transition['from'] ), wc_get_order_status_name( $status_transition['to'] ) );
     
        // Note the transition occurred.
  • /includes/class-wc-order.php line 446
    443
    444
    445
    446
    447
    448
    449
    450
    451
    452
    // Note the transition occurred.
    $this->add_status_transition_note( $transition_note, $status_transition );
     
    do_action( 'woocommerce_order_status_' . $status_transition['from'] . '_to_' . $status_transition['to'], $this->get_id(), $this );
    do_action( 'woocommerce_order_status_changed', $this->get_id(), $status_transition['from'], $status_transition['to'], $this );
     
    // Work out if this was for a payment, and trigger a payment_status hook instead.
    if (
        /**
         * Filter the valid order statuses for payment.