apply_filters( "rest_{$this->post_type}_query", array $args , WP_REST_Request $request )
Filters the query arguments for a request.
Description Description
Enables adding extra arguments or setting defaults for a post collection request.
Parameters Parameters
- $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/endpoints/class-wp-rest-posts-controller.php
Changelog Changelog
Version | Description |
---|---|
4.7.0 | Introduced. |
User Contributed Notes User Contributed Notes
You must log in before being able to contribute a note or feedback.
Code example: