--- title: Add a customer note to multiple WooCommerce orders at once description: WooCommerce has no bulk action for adding the same customer note to many orders. A small plugin adds one, with an optional email to each customer. source: https://steem.dev/blog/woocommerce-bulk-add-customer-note-plugin published: 2026-09-11 updated: 2026-10-31 site: Steem — AI WordPress plugin generator --- # Add a customer note to multiple WooCommerce orders at once WooCommerce makes it easy to add a note to one order and impossible to add the same note to thirty. When a courier delays a batch of parcels, a product ships with a small defect, or a pre-order run is three weeks late, you write the same update into each order by hand. It bites at the worst moment. The situations that call for telling many customers at once are the ones where you are also fixing the underlying problem, and thirty orders means thirty note screens, the same text and the same save click each time. The plugin adds 'Add customer note' to the bulk actions on the orders list. Filter to the affected batch, select them, choose the action, type the message once, decide whether to email customers, and submit. Every selected order gets the note in one step. ## What one build covers - A bulk action in the WooCommerce orders list that adds a typed note to all selected orders in one step - An optional customer email notification checkbox, checked by default, so you can notify customers or add the note silently - Compatibility with both the classic WooCommerce order table and HPOS (High Performance Order Storage) - A confirmation notice after submission showing how many orders received the note - Works on any order status; use WooCommerce's built-in order filters to narrow the selection before applying the bulk action ## What it does not cover - Private internal notes visible only to staff; the plugin adds customer-facing notes only - Per-order variable text; the note is identical for every selected order - Scheduling; notes are applied immediately when you submit the form - Saved note templates for reusing common messages across sessions - Bulk removal or editing of notes that have already been added to orders ## The prompt ```text Build a WordPress plugin that adds a 'Add customer note' bulk action to the WooCommerce orders list. Register the action on both bulk_actions-edit-shop_order and bulk_actions-woocommerce_page_wc-orders filters with the key add_customer_note and label 'Add customer note'. Handle the action on handle_bulk_actions-edit-shop_order and handle_bulk_actions-woocommerce_page_wc-orders: generate a transient key using 'wc_bulk_note_' . wp_generate_password(12, false), store the array of order IDs under that key with set_transient for 300 seconds, then return the redirect URL with the query parameter wc_bulk_note set to the transient key. On admin_notices, when the wc_bulk_note query parameter is present and the current user has the edit_shop_orders capability, retrieve the order IDs from the transient; if valid, render a div.notice.notice-info containing a form with method POST with: a wp_nonce_field for action wc_bulk_note_submit, a hidden input named wc_bulk_note_key with the transient key, a paragraph showing 'Adding a note to X order(s):', a label and textarea named note_text with the required attribute and placeholder 'Enter the note to add to all selected orders', a label with a checkbox input named notify_customer value 1 checked by default with text 'Notify customers by email', and a submit button named wc_bulk_note_submit labelled 'Add note to orders'. On admin_init, when $_POST['wc_bulk_note_submit'] is set and the current user has edit_shop_orders capability, verify the nonce with wp_verify_nonce using action wc_bulk_note_submit, retrieve and delete the transient using the posted wc_bulk_note_key value, sanitize the note_text with sanitize_textarea_field, determine the is_customer_note flag from whether notify_customer is in $_POST, iterate over the order IDs calling wc_get_order on each and calling add_order_note on valid orders with the sanitized text and the is_customer_note flag, then redirect to the WooCommerce orders admin page with query parameter wc_bulk_note_count set to the count of updated orders. On admin_notices, when wc_bulk_note_count is set, display a success notice 'Customer note added to X order(s)'. Register all hooks inside a function attached to plugins_loaded. ``` ## A bulk action and a one-message form The action is registered on both order tables, the classic `edit-shop_order` screen and the HPOS `woocommerce_page_wc-orders` screen that newer stores use by default, so it works whichever storage mode your site runs. Apply it and a form appears above the orders list showing how many orders are selected, a box for the note, and a 'Notify customers by email' checkbox, ticked by default. Submit, and each order receives the note through WooCommerce's own order note system, exactly as if you had added it by hand, followed by a notice saying how many were updated. ## The customer notification email WooCommerce sends its built-in New Order Note email whenever a customer-facing note is added. With the checkbox left ticked, every customer in your selection gets it. Untick it to add the note to each order's history without emailing anyone. Staff still see it; nothing goes out. That is useful when the note is for your own records rather than a message to customers. The email uses your store's order note template, so any branding, footer text or customisation on WooCommerce's transactional emails applies. ## Batch problems: delays, couriers, pre-orders Subscription boxes, pre-orders, print-on-demand, wholesale dispatches: any store where groups of orders move through the same step together. When something affects the batch, this tells everyone in one action. The workflow is filter first. Narrow the orders list with WooCommerce's status filters, a date range or the search bar, select the orders that ordered in the affected window, then apply the note to whatever is selected. For developers, it is a capability to hand clients without a paid plugin. It is small, and its behaviour is predictable because it uses WooCommerce's order note API throughout. ## Same text for everyone, only the orders you pick It acts on orders you select in the list. It cannot reach 'everyone who bought product X' unless you filter those orders yourself first; for customers not already identified by a set of orders, use your email marketing tool. Every selected order gets identical text. A note that includes each order's number or its own dispatch date needs a template system with order-level variables, which is a different build. If your managed WooCommerce host already includes an order management tool with support behind it, check before adding a custom plugin. Some do. A follow-up message can add a second bulk action for private notes that only staff see, calling `add_order_note` with `is_customer_note` set to 0 and no email checkbox. --- Source: https://steem.dev/blog/woocommerce-bulk-add-customer-note-plugin Build this plugin: https://steem.dev/app