Managing orders is an integral part of running an online store, and WooCommerce provides a dedicated admin area for this purpose. To enhance the order list's functionality, you may desire to include additional columns. Here's a guide on how to achieve this:
Standard WooCommerce Flow
In the standard WooCommerce flow, you can add columns to the order list using the following steps:
// Add columns add_filter('manage_edit-shop_order_columns', 'add_admin_order_list_custom_column', 20); function add_admin_order_list_custom_column($columns) { $reordered_columns = array(); // Inserting columns to a specific location foreach($columns as $key => $column){ $reordered_columns[$key] = $column; if($key == 'order_status'){ // Inserting after "Status" column
Disclaimer: All resources provided are partly from the Internet. If there is any infringement of your copyright or other rights and interests, please explain the detailed reasons and provide proof of copyright or rights and interests and then send it to the email: [email protected] We will handle it for you as soon as possible.
Copyright© 2022 湘ICP备2022001581号-3