WC_Order::add_status_transition_note()
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() WC Order::add status transition note code WC 9.6.1
private function add_status_transition_note( $note, $transition ) { return $this->add_order_note( trim( $transition['note'] . ' ' . $note ), 0, $transition['manual'] ); }