woocommerce_new_customer_note
Usage
add_action( 'woocommerce_new_customer_note', 'wp_kama_woocommerce_new_customer_note_action' ); /** * Function for `woocommerce_new_customer_note` action-hook. * * @param $array * * @return void */ function wp_kama_woocommerce_new_customer_note_action( $array ){ // action... }
- $array
- -
Where the hook is called
woocommerce/includes/class-wc-order.php 1978-1984
do_action( 'woocommerce_new_customer_note', array( 'order_id' => $this->get_id(), 'customer_note' => $commentdata['comment_content'], ) );