woocommerce_order_note_added
Action hook fired after an order note is added.
Usage
add_action( 'woocommerce_order_note_added', 'wp_kama_woocommerce_order_note_added_action', 10, 2 ); /** * Function for `woocommerce_order_note_added` action-hook. * * @param int $order_note_id Order note ID. * @param WC_Order $order Order data. * * @return void */ function wp_kama_woocommerce_order_note_added_action( $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 1995
do_action( 'woocommerce_order_note_added', $comment_id, $this );