WordPress at Your Fingertips
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.


Int. Comment ID.


// 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.


Since 3.9.0 Introduced.

Code of WC_Order::add_status_transition_note() WC 5.8.0

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