W3cubDocs

/WordPress

apply_filters( ‘xmlrpc_default_user_fields’, array $fields, string $method )

Filters the default user query fields used by the given XML-RPC method.

Parameters

$fieldsarray
An array of user fields to retrieve. By default, contains 'all'.
$methodstring
The method name.

Source

$fields = apply_filters( 'xmlrpc_default_user_fields', array( 'all' ), 'wp.getUser' );

Changelog

Version Description
3.5.0 Introduced.

© 2003–2024 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/xmlrpc_default_user_fields