Add an order status such as "Awaiting shipment" to track orders between processing and completed.
add_action( 'init', function (): void {
register_post_status( 'wc-awaiting-shipment', [
'label' => 'Awaiting shipment',
'public' => false,
'exclude_from_search' => false,
'show_in_admin_all_list' => true,
'show_in_admin_status_list' => true,
/* translators: %s: number of orders */
'label_count' => _n_noop( 'Awaiting shipment <span class="count">(%s)</span>', 'Awaiting shipment <span class="count">(%s)</span>' ),
] );
} );
// Add it to WooCommerce's list, right after Processing.
add_filter( 'wc_order_statuses', function ( array $statuses ): array {
$new = [];
foreach ( $statuses as $key => $label ) {
$new[ $key ] = $label;
if ( 'wc-processing' === $key ) {
$new['wc-awaiting-shipment'] = 'Awaiting shipment';
}
}
return $new;
} );
// Count it as a paid status, so stock and reports treat it like Processing.
add_filter( 'woocommerce_order_is_paid_statuses', function ( array $statuses ): array {
$statuses[] = 'awaiting-shipment';
return $statuses;
} );
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.
WooCommerce’s statuses don’t always match how you work. If orders sit in a queue between payment and dispatch, a status like “Awaiting shipment” shows exactly where each one is.
WooCommerce order statuses start with wc-. The snippet registers the status, adds it to wc_order_statuses so it appears in the order screen’s status dropdown and bulk actions, and adds it to the paid statuses so WooCommerce treats it like Processing for stock and reports.
This works with both the classic orders table and High-Performance Order Storage.
Open an order in WooCommerce → Orders. “Awaiting shipment” should be in the status dropdown. Change an order to it and filter the list by it.