The WooCommerce order edit screen has a set of boxes for shipments, downloadable permissions, and notes. Sometimes you need one more: a box that shows a value from your own plugin, a support reminder, or a link to an external system.
WooCommerce Add Custom Meta Box Order Admin is exactly that task. This guide shows how to register a meta box with add_meta_box(), render content in it, and make it work on both the classic and the HPOS order screens.
Why add a custom meta box to orders
The order screen uses the same meta box system as the post editor. Any box you register with add_meta_box() appears alongside WooCommerce’s own boxes, so shop managers see your content where they already work. You don’t need to build or maintain a separate admin page.
A typical use is showing a field that your checkout or import process saves, such as a tax ID or a delivery window.
Register the meta box
Hook into add_meta_boxes and register the box for each order screen. With high-performance order storage (HPOS) enabled, WooCommerce uses the screen ID woocommerce_page_wc-orders. The classic screen uses shop_order. Registering both keeps the box working either way.
<?php
add_action( 'add_meta_boxes', 'my_add_custom_order_meta_box' );
function my_add_custom_order_meta_box() {
$screens = array( 'shop_order', 'woocommerce_page_wc-orders' );
foreach ( $screens as $screen ) {
add_meta_box(
'my_custom_order_meta_box',
__( 'Custom order meta box', 'my-textdomain' ),
'my_render_custom_order_meta_box',
$screen,
'normal',
'default'
);
}
}The arguments are the box ID, the title, the callback that prints the content, the screen, the context, and the priority. The context normal puts the box in the main column, as in the screenshot below.
Render the box content
The callback receives a WP_Post on the classic screen and the order object with HPOS. The first line of the example handles both cases, so you always end up with an order object to work with.
<?php
function my_render_custom_order_meta_box( $post_or_order ) {
$order = $post_or_order instanceof WP_Post ? wc_get_order( $post_or_order->ID ) : $post_or_order;
if ( ! $order ) {
return;
}
echo '<p>' . esc_html__( 'Custom order meta box content', 'my-textdomain' ) . '</p>';
echo '<p>' . esc_html( 'Order status: ' . $order->get_status() ) . '</p>';
}Tip: Escape everything you print. Use
esc_html()for text andesc_url()for links, the same as in any other meta box.
Where the box appears
Once the code is active, the box appears on every order edit screen, in the main column below the existing boxes. Here it sits under Shipments and Downloadable product permissions:

The title and body in the screenshot come from the strings in the examples above: Custom order meta box as the title and Custom order meta box content as the body.
Common problems
The box does not appear with HPOS
Check the screen ID first. A box registered only for shop_order never shows up on an HPOS store, which is why the example above registers both IDs.
The callback receives a WP_Post or an order
Older snippets assume the callback always gets a WP_Post and read $post->ID directly. That breaks on HPOS, where the argument is the order itself. Use the instanceof check from the render example instead.
FAQs About WooCommerce Order Meta Boxes
Can I place the box in the sidebar?
Yes. Change the context from normal to side. The side column is narrower, so keep the content short.
Can I save data from the box?
Yes. Add a form field to the box and save it through the order object with $order->update_meta_data(), followed by $order->save(). Using the order object rather than post meta keeps the code working with HPOS.
Does it work without HPOS?
Yes. The example registers both screen IDs, so the box appears on classic order storage too. An unused screen ID is harmless.
Do I need a box for each order status?
No. One box appears on every order status. To show different content for different statuses, check $order->get_status() inside the render callback.
Conclusion
A custom meta box is the simplest way to show your own information on the WooCommerce order screen. Register it on both screen IDs, handle both callback argument types, and escape the output.
If you need a fuller order admin tool, hire a WooCommerce developer or send a brief through the application form.
