WordPress at a glance
function is not described

Automattic\WooCommerce\Admin\API

ProductAttributeTerms::get_item_by_slug() public WC 1.0

Get a single custom attribute.

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

No Hooks.

Return

WP_REST_Request|WP_Error. Nothing.

Usage

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

Code of ProductAttributeTerms::get_item_by_slug() WC 5.3.0

<?php
public function get_item_by_slug( $request ) {
	return $this->get_custom_attribute_values( $request['slug'] );
}