wc_order_search()
Search orders.
No Hooks.
Return
Array
. List of orders ID.
Usage
wc_order_search( $term );
- $term(string) (required)
- Term to search.
Changelog
Since 2.6.0 | Introduced. |
wc_order_search() wc order search code WC 9.4.2
function wc_order_search( $term ) { $data_store = WC_Data_Store::load( 'order' ); return $data_store->search_orders( str_replace( 'Order #', '', wc_clean( $term ) ) ); }