woothemes/woocommerce — Issue #249: Missing a function get_attribute
Author: DanielBakovic
Created: 2011-11-22 12:21:52+00:00
State: open

Hi,

I miss a function to retrieve a single attribute of a product in the product class. It would be great if we could get an attribute in this was:

$_product->get_attribute('attr_name') or get_attribute($_product, 'attr_name')

it should work in similar way like get_post_meta :)