Product Attribute Slug
-
Hi,
On my WooCommerce page I would like to get my custom product attribute slug.
I’ve got a product attribute called “Brand”. To get the different attributes, I use this code which is working perfect.
<?php $product_brand = $product->get_attribute( 'pa_brand' ); // Get the product brand ?>But now I only get the attribute name. I would also like to get the attribute slug. Is that possible??
Thanks in advance! 🙂
The topic ‘Product Attribute Slug’ is closed to new replies.