Automattic\WooCommerce\Admin\API

ProductAttributeTerms::get_item_by_slug()publicWC 1.0

Get a single custom attribute.

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.

ProductAttributeTerms::get_item_by_slug() code WC 7.3.0

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