Skip to main content

Filter: dt_get_pull_content_rest_query_args

Filters WP_Query arguments when querying posts via the REST API.

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

Parameters​

NameTypeDescription
$argsarrayArray of arguments for WP_Query.
$request\WP_REST_RequestThe REST API request.

Source​

Defined in includes/rest-api.php at line 762

Returns​

The array of arguments for WP_Query.

Ready to Get Started?

Distributor is a WordPress plugin that makes it easy to syndicate and reuse content across your websites — whether in a single multisite or across the web.