xmlrpc_prepare_user filter-hookWP 3.5.0

Filters XML-RPC-prepared data for the given user.

Usage

add_filter( 'xmlrpc_prepare_user', 'wp_kama_xmlrpc_prepare_user_filter', 10, 3 );

/**
 * Function for `xmlrpc_prepare_user` filter-hook.
 * 
 * @param array   $_user  An array of user data.
 * @param WP_User $user   User object.
 * @param array   $fields An array of user fields.
 *
 * @return array
 */
function wp_kama_xmlrpc_prepare_user_filter( $_user, $user, $fields ){

	// filter...
	return $_user;
}
$_user(array)
An array of user data.
$user(WP_User)
User object.
$fields(array)
An array of user fields.

Changelog

Since 3.5.0 Introduced.

Where the hook is called

wp_xmlrpc_server::_prepare_user()
xmlrpc_prepare_user
wp-includes/class-wp-xmlrpc-server.php 1259
return apply_filters( 'xmlrpc_prepare_user', $_user, $user, $fields );

Where the hook is used in WordPress

Usage not found.