rest_user_query

Advertisement

Summery Summery

Filters WP_User_Query arguments when querying users via the REST API.

Syntax Syntax

apply_filters( 'rest_user_query', array $prepared_args, WP_REST_Request $request )

Parameters Parameters

$prepared_args

(array) Array of arguments for WP_User_Query.

$request

(WP_REST_Request) The current request.

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.