跳到主要内容
版本:0.4.x

Filtering orders by POS or Online sales

You can quickly separate your POS and Online orders in the WooCommerce admin by using the quick-links to the top left. Please note: this will only filter POS orders after version 0.3.1, orders prior to 0.3.1 will default to Online.

Filter Orders

Additionally, if you wanted to filter all the completed orders from your admin area so you can focus on the pending/processing orders, you can add the following code to your functions.php file.

functions.php
/**
* Change default filter of orders in WP admin
* add this to your functions.php file
*/
add_action( 'admin_menu', 'change_default_order_filter', 99 );
function change_default_order_filter() {
global $submenu;
if (isset($submenu['woocommerce'])) {
$submenu['woocommerce'][1][2] = 'edit.php?post_type=shop_order&shop_order_status=pending,processing';
}
}