WordPress at Your Fingertips
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.

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 6.1.0

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