我使用此代码创建了一些自定义订单状态
register_post_status( 'wc-arrival-shipment', array(
'label' => 'Shipped but not paid',
'public' => false,
'show_in_admin_status_list' => true,
'show_in_admin_all_list' => true,
'exclude_from_search' => false,
'label_count' => _n_noop( 'Shipped but not paid<span class="count">(%s)</span>', 'Shipped but not paid <span class="count">(%s)</span>' )
) );
Run Code Online (Sandbox Code Playgroud)
除所有订单清单外,其他一切运行良好。它会显示正确的计数all(3),但是在清单中您只会看到1个订单,并且不会显示已更新为新的自定义订单状态的所有其他2个订单。仅显示1个订单,仅保留