Alert: This function’s access is marked private. This means it is not intended for use by plugin or theme developers, only in other core functions. It is listed here for completeness.
WC_Order::add_status_transition_note( string $note, bool $transition )
Add an order note for status transition
Description Description
Parameters Parameters
- $note
-
(Required) Note to be added giving status transition from and to details.
- $transition
-
(Required) Details of the status transition.
Return Return
(int) Comment ID.
Source Source
File: includes/class-wc-order.php
private function add_status_transition_note( $note, $transition ) { return $this->add_order_note( trim( $transition['note'] . ' ' . $note ), 0, $transition['manual'] ); }
Changelog Changelog
Version | Description |
---|---|
3.9.0 | Introduced. |