rest_user_collection_params

Advertisement

Summery Summery

Filter collection parameters for the users controller.

Syntax Syntax

apply_filters( 'rest_user_collection_params', array $query_params )

Description Description

This filter registers the collection parameter, but does not map the collection parameter to an internal WP_User_Query parameter. Use the rest_user_query filter to set WP_User_Query arguments.

Parameters Parameters

$query_params

(array) JSON Schema-formatted collection parameters.

Source Source

File: wp-includes/rest-api/endpoints/class-wp-rest-users-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.