預設使用 WP_List_Table 建立的列表清單,搜尋功能並不是最完整。 WooCommerce 這邊還有提供一個事件過濾器的 Hook 來強化搜尋的結果: woocommerce_shop_order_search_results 使用這個 Hook 來加入貨號(SKU)條件的方法如下: fu …
標籤彙整: 訂單搜尋
[WooCommerce] 針對訂單客製化欄位新增訂單搜尋條件
WooCommerce 後台訂單管理有個搜尋功能,這功能大部分情況下應該都可以滿足搜尋條件。 不過他到底就是預設只查詢這幾個內建欄位: _order_key _billing_first_name _billing_last_name _billing_company _billing_addres …