Orders::get_search_options()
Get the allowed search types and their labels.
See also
- TECTicketsCommerceRepositoriesOrder_Repository: for a List of valid ORM args.
Return
(array)
Source
File: src/Tickets/Commerce/Admin_Tables/Orders.php
public function get_search_options() {
$options = [
'purchaser_full_name' => __( 'Search by Purchaser Name', 'event-tickets' ),
'purchaser_email' => __( 'Search by Purchaser Email', 'event-tickets' ),
'gateway' => __( 'Search by Gateway', 'event-tickets' ),
'gateway_order_id' => __( 'Search by Gateway ID', 'event-tickets' ),
'id' => __( 'Search by Order ID', 'event-tickets' ),
];
/**
* Filters the search types to be shown in the search box for filtering orders.
*
* @since 5.5.6
*
* @param array $options List of ORM search types and their labels.
*/
return apply_filters( 'tec_tc_order_search_types', $options );
}
Changelog
| Version | Description |
|---|---|
| 5.5.6 | Introduced. |