xmlrpc_default_user_fields filter-hookWP 3.5.0

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

Usage

add_filter( 'xmlrpc_default_user_fields', 'wp_kama_xmlrpc_default_user_fields_filter', 10, 2 );

/**
 * Function for `xmlrpc_default_user_fields` filter-hook.
 * 
 * @param array  $fields User query fields for given method.
 * @param string $method The method name.
 *
 * @return array
 */
function wp_kama_xmlrpc_default_user_fields_filter( $fields, $method ){

	// filter...
	return $fields;
}
$fields(array)
User query fields for given method.
Default: 'all'
$method(string)
The method name.

Changelog

Since 3.5.0 Introduced.

Where the hook is called

wp_xmlrpc_server::wp_getUser()
xmlrpc_default_user_fields
wp_xmlrpc_server::wp_getUsers()
xmlrpc_default_user_fields
wp_xmlrpc_server::wp_getProfile()
xmlrpc_default_user_fields
wp-includes/class-wp-xmlrpc-server.php 2685
$fields = apply_filters( 'xmlrpc_default_user_fields', array( 'all' ), 'wp.getUser' );
wp-includes/class-wp-xmlrpc-server.php 2748
$fields = apply_filters( 'xmlrpc_default_user_fields', array( 'all' ), 'wp.getUsers' );
wp-includes/class-wp-xmlrpc-server.php 2828
$fields = apply_filters( 'xmlrpc_default_user_fields', array( 'all' ), 'wp.getProfile' );

Where the hook is used in WordPress

Usage not found.