rest_post_search_query

Advertisement

Summery Summery

Filters the query arguments for a search request.

Syntax Syntax

apply_filters( 'rest_post_search_query', array $query_args, WP_REST_Request $request )

Description Description

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

Parameters Parameters

$query_args

(array) Key value array of query var to query value.

$request

(WP_REST_Request) The request used.

Source Source

File: wp-includes/rest-api/search/class-wp-rest-post-search-handler.php

Advertisement

Changelog Changelog

Changelog
Version Description
5.1.0 Introduced.

Advertisement

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.