WP_REST_Posts_Controller::prepare_items_query

Advertisement

Summery Summery

Determines the allowed query_vars for a get_items() response and prepares them for WP_Query.

Syntax Syntax

WP_REST_Posts_Controller::prepare_items_query( array $prepared_args = array(), WP_REST_Request $request = null )

Parameters Parameters

$prepared_args

(array) (Optional) Prepared WP_Query arguments.

Default value: array()

$request

(WP_REST_Request) (Optional) Full details about the request.

Default value: null

Return Return

(array) Items query arguments.

Source Source

File: wp-includes/rest-api/endpoints/class-wp-rest-posts-controller.php


			

Advertisement

Changelog Changelog

Changelog
Version Description
4.7.0 Introduced.

Advertisement

Leave a Reply

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