rest_term_search_query

过滤钩子


apply_filters( 'rest_term_search_query', $query_args, $request )
参数
  • (array)
    $query_args
    Key value array of query var to query value.
    Required:
  • (WP_REST_Request)
    $request
    The request used.
    Required:
定义位置
  • wp-includes/rest-api/search/class-wp-rest-term-search-handler.php
    , line 91
引入
5.6.0
弃用

Filters the query arguments for a REST API search request.

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

$query_args = apply_filters( 'rest_term_search_query', $query_args, $request );