woocommerce_order_note_added action-hook . WC 4.4.0
Action hook fired after an order note is added.
Usage
add_action( 'woocommerce_order_note_added', 'action_function_name_381', 10, 2 ); function action_function_name_381( $order_note_id, $order ){ // action... }
- $order_note_id(int)
- Order note ID.
- $order(WC_Order)
- Order data.
Changelog
Since 4.4.0 | Introduced. |
Where the hook is called
woocommerce/includes/class-wc-order.php 1741
do_action( 'woocommerce_order_note_added', $comment_id, $this );