wc_order_search( string $term )

Search orders.


Description Description


Parameters Parameters

$term

(Required) Term to search.


Top ↑

Return Return

(array) List of orders ID.


Top ↑

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 ) ) );
}

Top ↑

Changelog Changelog

Changelog
Version Description
2.6.0 Introduced.


Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.