WordPress как на ладони
Недорогой хостинг для сайтов на WordPress: wordpress.jino.ru
функция не описана

wp_xmlrpc_server::_prepare_term() protected WP 1.0

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

Это метод класса: wp_xmlrpc_server{}

Хуки из метода
Возвращает

Массив. The prepared term data.

Использование

// protected - в коде основоного (родительского) или дочернего класса
$result = $this->_prepare_term( $term );
$term(массив/объект) (обязательный)
The unprepared term data.

Код wp xmlrpc server:: prepare term: wp-includes/class-wp-xmlrpc-server.php WP 5.5.1

<?php
protected function _prepare_term( $term ) {
	$_term = $term;
	if ( ! is_array( $_term ) ) {
		$_term = get_object_vars( $_term );
	}

	// For integers which may be larger than XML-RPC supports ensure we return strings.
	$_term['term_id']          = strval( $_term['term_id'] );
	$_term['term_group']       = strval( $_term['term_group'] );
	$_term['term_taxonomy_id'] = strval( $_term['term_taxonomy_id'] );
	$_term['parent']           = strval( $_term['parent'] );

	// Count we are happy to return as an integer because people really shouldn't use terms that much.
	$_term['count'] = intval( $_term['count'] );

	// Get term meta.
	$_term['custom_fields'] = $this->get_term_custom_fields( $_term['term_id'] );

	/**
	 * Filters XML-RPC-prepared data for the given term.
	 *
	 * @since 3.4.0
	 *
	 * @param array        $_term An array of term data.
	 * @param array|object $term  Term object or array.
	 */
	return apply_filters( 'xmlrpc_prepare_term', $_term, $term );
}