WordPress at a glance
function is not described

WC_Order::add_status_transition_note() private WC 3.9.0

Add an order note for status transition

{} It's a method of the class: WC_Order{}

No Hooks.

Return

Int. Comment ID.

Usage

// private - for code of main (parent) class only
$result = $this->add_status_transition_note( $note, $transition );
$note(string) (required)
Note to be added giving status transition from and to details.
$transition(true/false) (required)
Details of the status transition.

Changelog

Since 3.9.0 Introduced.

Code of WC_Order::add_status_transition_note() WC 5.0.0

<?php
private function add_status_transition_note( $note, $transition ) {
	return $this->add_order_note( trim( $transition['note'] . ' ' . $note ), 0, $transition['manual'] );
}