WordPress at a glance
filter is not described

rest_term_search_query filter-hook . WP 1.0

Filters the query arguments for a search request.

Enables adding extra arguments or setting defaults for a term search request.

Usage

add_filter( 'rest_term_search_query', 'filter_function_name_5743', 10, 2 );
function filter_function_name_5743( $query_args, $request ){
	// filter...

	return $query_args;
}
$query_args(array)
Key value array of query var to query value.
$request(WP_REST_Request)
The request used.

Where the hook is called

WP_REST_Term_Search_Handler::search_items()
rest_term_search_query
wp-includes/rest-api/search/class-wp-rest-term-search-handler.php 76
$query_args = apply_filters( 'rest_term_search_query', $query_args, $request );

Where in WP core the hook is used WordPress

Usage not found.