woocommerce_order_status_

woocommerce_order_status_

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

See hook in core

Displaying hooks found in version: woocommerce.8.7.0

do_action('woocommerce_order_status_') is found 2 times:

  • /includes/class-wc-order.php line 411
    				 *      @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 420
     
    					// 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 (
    						in_array( $status_transition['from'], apply_filters( 'woocommerce_valid_order_statuses_for_payment', array( 'pending', 'failed' ), $this ), true )
    						&& in_array( $status_transition['to'], wc_get_is_paid_statuses(), true )