wc_order_search( string $term )
Search orders.
Description Description
Parameters Parameters
- $term
-
(Required) Term to search.
Return Return
(array) List of orders ID.
Source Source
File: includes/wc-order-functions.php
function wc_order_search( $term ) {
$data_store = WC_Data_Store::load( 'order' );
return $data_store->search_orders( str_replace( 'Order #', '', wc_clean( $term ) ) );
}
Changelog Changelog
| Version | Description |
|---|---|
| 2.6.0 | Introduced. |