Show order numbers like "NP-1234" instead of "1234" in emails, My Account and wp-admin.
add_filter( 'woocommerce_order_number', function ( $number ): string {
return 'NP-' . $number;
} );
Always add PHP to a staging site first, or have FTP or file manager access ready, so you can undo it if something goes wrong.
A prefix makes your order numbers recognisable in customers’ inboxes and in your accounting software, and stops them looking like low, sequential numbers.
Everywhere WooCommerce displays an order number, it calls $order->get_order_number(), which passes the order id through the woocommerce_order_number filter. Adding a prefix there changes it in emails, the thank-you page, My Account and the orders list.
Place a test order. The thank-you page and confirmation email should show “NP-” before the number.