WordPress at a glance
function is not described

wp_xmlrpc_server::_prepare_taxonomy() WP 1.0

Prepares taxonomy data for return in an XML-RPC object.

This is a method of the class: wp_xmlrpc_server

Hooks from the method
Return

Array. The prepared taxonomy data.

Usage

$wp_xmlrpc_server = new wp_xmlrpc_server();
$var = $wp_xmlrpc_server->_prepare_taxonomy( $taxonomy, $fields );
$taxonomy(object) (required)
The unprepared taxonomy data.
$fields(array) (required)
The subset of taxonomy fields to return.

Code of wp xmlrpc server:: prepare taxonomy: wp-includes/class-wp-xmlrpc-server.php WP 5.2.2

<?php
protected function _prepare_taxonomy( $taxonomy, $fields ) {
	$_taxonomy = array(
		'name'         => $taxonomy->name,
		'label'        => $taxonomy->label,
		'hierarchical' => (bool) $taxonomy->hierarchical,
		'public'       => (bool) $taxonomy->public,
		'show_ui'      => (bool) $taxonomy->show_ui,
		'_builtin'     => (bool) $taxonomy->_builtin,
	);

	if ( in_array( 'labels', $fields ) ) {
		$_taxonomy['labels'] = (array) $taxonomy->labels;
	}

	if ( in_array( 'cap', $fields ) ) {
		$_taxonomy['cap'] = (array) $taxonomy->cap;
	}

	if ( in_array( 'menu', $fields ) ) {
		$_taxonomy['show_in_menu'] = (bool) $_taxonomy->show_in_menu;
	}

	if ( in_array( 'object_type', $fields ) ) {
		$_taxonomy['object_type'] = array_unique( (array) $taxonomy->object_type );
	}

	/**
	 * Filters XML-RPC-prepared data for the given taxonomy.
	 *
	 * @since 3.4.0
	 *
	 * @param array       $_taxonomy An array of taxonomy data.
	 * @param WP_Taxonomy $taxonomy  Taxonomy object.
	 * @param array       $fields    The subset of taxonomy fields to return.
	 */
	return apply_filters( 'xmlrpc_prepare_taxonomy', $_taxonomy, $taxonomy, $fields );
}