WC_Order::add_status_transition_note()privateWC 3.9.0

Add an order note for status transition

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.

WC_Order::add_status_transition_note() code WC 8.7.0

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