woocommerce_order_note_added action-hookWC 4.4.0

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

WC_Order::add_order_note()
woocommerce_order_note_added
woocommerce/includes/class-wc-order.php 1995
do_action( 'woocommerce_order_note_added', $comment_id, $this );

Where the hook is used in WooCommerce

Usage not found.