xmlrpc_default_user_fields WordPress Filter Hook
The xmlrpc_default_user_fields hook allows you to add or remove user fields from the default list of fields returned by the XML-RPC getUser method. This hook is useful for adding custom user fields to your XML-RPC interface.
apply_filters( 'xmlrpc_default_user_fields', array $fields , string $method ) #
Filters the default user query fields used by the given XML-RPC method.
Parameters
- $fields
(array)User query fields for given method. Default 'all'.
- $method
(string)The method name.
Source
Changelog
Version | Description |
---|---|
3.5.0 | Introduced. |