woocommerce_shop_order_search_results
Usage
add_filter( 'woocommerce_shop_order_search_results', 'wp_kama_woocommerce_shop_order_search_results_filter', 10, 3 ); /** * Function for `woocommerce_shop_order_search_results` filter-hook. * * @param $order_ids * @param $term * @param $search_fields * * @return */ function wp_kama_woocommerce_shop_order_search_results_filter( $order_ids, $term, $search_fields ){ // filter... return $order_ids; }
- $order_ids
- -
- $term
- -
- $search_fields
- -
Where the hook is called
woocommerce_shop_order_search_results
woocommerce/includes/data-stores/class-wc-order-data-store-cpt.php 622
return apply_filters( 'woocommerce_shop_order_search_results', $order_ids, $term, $search_fields );