woocommerce_hpos_admin_search_filters
Filters the search filters available in the admin order search. Can be used to add new or remove existing filters. When adding new filters, woocommerce_hpos_generate_where_for_search_filter also be used to generate the WHERE clause for the new filter
Usage
add_filter( 'woocommerce_hpos_admin_search_filters', 'wp_kama_woocommerce_hpos_admin_search_filters_filter' );
/**
* Function for `woocommerce_hpos_admin_search_filters` filter-hook.
*
* @param $options $options array List of available filters.
*
* @return $options
*/
function wp_kama_woocommerce_hpos_admin_search_filters_filter( $options ){
// filter...
return $options;
}
- $options($options)
- array List of available filters.
Changelog
| Since 8.9.0. | Introduced. |
Where the hook is called
woocommerce_hpos_admin_search_filters
woocommerce/src/Internal/Admin/Orders/ListTable.php 1828
$options = apply_filters( 'woocommerce_hpos_admin_search_filters', $options );