WordPress at a glance
function is not described

WC_REST_Terms_Controller::get_item() public WC 1.0

Get a single term from a taxonomy.

{} It's a method of the class: WC_REST_Terms_Controller{}

No Hooks.

Return

WP_REST_Request|WP_Error.

Usage

$WC_REST_Terms_Controller = new WC_REST_Terms_Controller();
$WC_REST_Terms_Controller->get_item( $request );
$request(WP_REST_Request) (required)
Full details about the request.

Code of WC_REST_Terms_Controller::get_item() WC 5.0.0

<?php
public function get_item( $request ) {
	$taxonomy = $this->get_taxonomy( $request );
	$term     = get_term( (int) $request['id'], $taxonomy );

	if ( is_wp_error( $term ) ) {
		return $term;
	}

	$response = $this->prepare_item_for_response( $term, $request );

	return rest_ensure_response( $response );
}