Title: Add admin note when automatic emails are sent
Last modified: August 18, 2020

---

# Add admin note when automatic emails are sent

 *  [63N](https://wordpress.org/support/users/63n/)
 * (@63n)
 * [5 years, 8 months ago](https://wordpress.org/support/topic/add-admin-note-when-automatic-emails-are-sent/)
 * On the backend order page it’d be good to be able to easily see if/when an automatic
   transactional email has been sent. There must be an easy way to hook into `add_order_note`
   when an automatic email is sent? Maybe just including the email title.
 * We’re already using an email logging tool, but a quick overview on each order
   page would be very useful, rather than having to trawl through all sent emails.
    -  This topic was modified 5 years, 8 months ago by [63N](https://wordpress.org/support/users/63n/).

Viewing 3 replies - 1 through 3 (of 3 total)

 *  Thread Starter [63N](https://wordpress.org/support/users/63n/)
 * (@63n)
 * [5 years, 8 months ago](https://wordpress.org/support/topic/add-admin-note-when-automatic-emails-are-sent/#post-13302421)
 * Would something along these lines work?
 *     ```
       add_action( 'woocommerce_new_order', 'custom_add_order_note' );
       function custom_add_order_note( $order_id ) {
   
       	$order = wc_get_order( $order_id );
   
       	// The email heading for the order note
       	$order_note = get_heading();
   
       	// Add the order note
       	$order->add_order_note( $order_note );
   
       }
       ```
   
 * [Reference.](https://wordpress.org/support/topic/custom-order-note-in-view-order-page/)
    -  This reply was modified 5 years, 8 months ago by [63N](https://wordpress.org/support/users/63n/).
 *  Thread Starter [63N](https://wordpress.org/support/users/63n/)
 * (@63n)
 * [5 years, 7 months ago](https://wordpress.org/support/topic/add-admin-note-when-automatic-emails-are-sent/#post-13461053)
 * Anybody?
 *  Thread Starter [63N](https://wordpress.org/support/users/63n/)
 * (@63n)
 * [5 years, 3 months ago](https://wordpress.org/support/topic/add-admin-note-when-automatic-emails-are-sent/#post-13919797)
 * I think I’ve found the right WooCommerce hook. This is tested and working for
   new paid orders…
 *     ```
       add_action( 'woocommerce_order_status_pending_to_processing_notification', 'custom_add_note_order_prcesssing' );
   
       function custom_add_note_order_prcesssing( $order_id ) {
   
           $order = wc_get_order( $order_id );
   
           // The text for the note
           $note = 'Customer email sent: order recieved';
   
           // Add the note
           $order->add_order_note( $note );
   
       }
       ```
   
 * I’d like to include the email title and/or subject in the note too if anyone 
   can help with that?

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Add admin note when automatic emails are sent’ is closed to new replies.

 * ![](https://ps.w.org/woocommerce/assets/icon.svg?rev=3234504)
 * [WooCommerce](https://wordpress.org/plugins/woocommerce/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/woocommerce/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/woocommerce/)
 * [Active Topics](https://wordpress.org/support/plugin/woocommerce/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/woocommerce/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/woocommerce/reviews/)

## Tags

 * [automated](https://wordpress.org/support/topic-tag/automated/)
 * [automatic](https://wordpress.org/support/topic-tag/automatic/)
 * [dashboard](https://wordpress.org/support/topic-tag/dashboard/)
 * [order notes](https://wordpress.org/support/topic-tag/order-notes/)
 * [transactional](https://wordpress.org/support/topic-tag/transactional/)

 * 3 replies
 * 1 participant
 * Last reply from: [63N](https://wordpress.org/support/users/63n/)
 * Last activity: [5 years, 3 months ago](https://wordpress.org/support/topic/add-admin-note-when-automatic-emails-are-sent/#post-13919797)
 * Status: not resolved